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
| Name | Type | Description |
|---|---|---|
ctx | context.Context | Parameter ctx of VerifyBlock. |
block | []byte | Parameter block of VerifyBlock. |
expected | Digest | Parameter expected of VerifyBlock. |
Returns
(Digest, error)
Source
This page is generated from SDK source metadata and the translation catalog.