VerifyBlockInSeed
func VerifyBlockInSeed(ctx context.Context, seed io.Reader, expectedSeedHash Digest, sourceSize uint64, block []byte) (VerifiedBlock, error)
VerifyBlockInSeed verifies membership and protocol block length in one seed pass. Seed integrity and source-size binding are checked before membership errors are returned.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | context.Context | Parameter ctx of VerifyBlockInSeed. |
seed | io.Reader | Parameter seed of VerifyBlockInSeed. |
expectedSeedHash | Digest | Parameter expectedSeedHash of VerifyBlockInSeed. |
sourceSize | uint64 | Parameter sourceSize of VerifyBlockInSeed. |
block | []byte | Parameter block of VerifyBlockInSeed. |
Returns
(VerifiedBlock, error)
Source
This page is generated from SDK source metadata and the translation catalog.