Skip to main content

FindBlockHash

func FindBlockHash(ctx context.Context, seed io.Reader, expectedSeedHash Digest, sourceSize uint64, blockHash Digest) (BlockMatches, error)

FindBlockHash scans a trusted seed once and returns the first/last indices and total count of an exact 32-byte digest match.

Parameters

NameTypeDescription
ctxcontext.ContextParameter ctx of FindBlockHash.
seedio.ReaderParameter seed of FindBlockHash.
expectedSeedHashDigestParameter expectedSeedHash of FindBlockHash.
sourceSizeuint64Parameter sourceSize of FindBlockHash.
blockHashDigestParameter blockHash of FindBlockHash.

Returns

(BlockMatches, error)

Source

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