Skip to main content

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​

NameTypeDescription
ctxcontext.ContextParameter ctx of CreateSeed.
sourceio.ReaderParameter source of CreateSeed.
sinkio.WriterParameter sink of CreateSeed.

Returns​

(SeedInfo, error)

Source​

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