CreateSeed
func CreateSeed(ctx context.Context, source io.Reader, sink io.Writer) (SeedInfo, error)
CreateSeed hashes source in protocol-sized blocks and writes raw 32-byte digests to sink. It never writes hexadecimal text to the sink.
Parameters
| Name | Type | Description |
|---|---|---|
ctx | context.Context | Parameter ctx of CreateSeed. |
source | io.Reader | Parameter source of CreateSeed. |
sink | io.Writer | Parameter sink of CreateSeed. |
Returns
(SeedInfo, error)
Source
This page is generated from SDK source metadata and the translation catalog.