Skip to main content

VerifySource

func VerifySource(ctx context.Context, source io.Reader, seed io.Reader) (VerifyInfo, error)

VerifySource validates every source block against the raw digests in seed, then checks that neither stream contains extra data.

Parameters

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifySource.
sourceio.ReaderParameter source of VerifySource.
seedio.ReaderParameter seed of VerifySource.

Returns

(VerifyInfo, error)

Source

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