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
| Name | Type | Description |
|---|---|---|
ctx | context.Context | Parameter ctx of FindBlockHash. |
seed | io.Reader | Parameter seed of FindBlockHash. |
expectedSeedHash | Digest | Parameter expectedSeedHash of FindBlockHash. |
sourceSize | uint64 | Parameter sourceSize of FindBlockHash. |
blockHash | Digest | Parameter blockHash of FindBlockHash. |
Returns
(BlockMatches, error)
Source
This page is generated from SDK source metadata and the translation catalog.