跳到主要内容

VerifySourceFile

func VerifySourceFile(ctx context.Context, sourcePath, seedPath string, expected Digest) (VerifyInfo, error)

函数 VerifySourceFile:处理 MasterSeed V1 数据种子。

参数

名称类型说明
ctxcontext.Context参数 ctx:为 VerifySourceFile 提供所需输入。
sourcePathstring参数 sourcePath:为 VerifySourceFile 提供所需输入。
seedPathstring参数 seedPath:为 VerifySourceFile 提供所需输入。
expectedDigest参数 expected:为 VerifySourceFile 提供所需输入。

返回值

(VerifyInfo, error)

来源

此页面由 TypeDoc/Go AST 元数据和中文翻译目录生成。标识符、类型、错误码和代码示例保持不译。