Skip to main content

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

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifyBlockInSeed.
seedio.ReaderParameter seed of VerifyBlockInSeed.
expectedSeedHashDigestParameter expectedSeedHash of VerifyBlockInSeed.
sourceSizeuint64Parameter sourceSize of VerifyBlockInSeed.
block[]byteParameter block of VerifyBlockInSeed.

Returns

(VerifiedBlock, error)

Source

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