identities.go - Hyperledger 源码分析之 Fabric

返回介绍

identities.go

发布于 2019-11-11 字数1103 浏览 894 评论 0

identities.go

定义了 identity 和 signingidentity 私有结构。

type identity struct {    // id contains the identifier (MSPID and identity identifier) for this instance    id *IdentityIdentifier    // cert contains the x.509 certificate that signs the public key of this instance    cert *x509.Certificate    // this is the public key of this instance    pk bccsp.Key    // reference to the MSP that "owns" this identity    msp *bccspmsp}type signingidentity struct {    // we embed everything from a base identity    identity    // signer corresponds to the object that can produce signatures from this identity    signer *signer.CryptoSigner}

上一篇:configbuilder.go

下一篇:identities.pb.go

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!