Skip to main content

VerifyBlock

func VerifyBlock(ctx context.Context, block []byte, expected Digest) (Digest, error)

VerifyBlock hashes one caller-provided block. A short block is accepted; an API caller needs source-length context to decide whether it is the last one.

Parameters

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifyBlock.
block[]byteParameter block of VerifyBlock.
expectedDigestParameter expected of VerifyBlock.

Returns

(Digest, error)

Source

This page is generated from SDK source metadata and the translation catalog.