Documentation ¶
Index ¶
- func GetLocalMSP() msp.MSP
- func GetSigningIdentity() (msp.SigningIdentity, error)
- func LoadLocalMspWithType(dir string, bccspConfig *factory.FactoryOpts, mspID, mspType string) error
- func NewBccspConf() *factory.FactoryOpts
- type IdentitySerializer
- type LocalSigner
- type MspEnv
- type SignatureHeaderMaker
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalMSP ¶
GetLocalMSP returns the local msp (and creates it if it doesn't exist)
func GetSigningIdentity ¶
func GetSigningIdentity() (msp.SigningIdentity, error)
GetSigningIdentity 获取bccsp类型的签名身份
Types ¶
type IdentitySerializer ¶
type IdentitySerializer interface { // Serialize converts an identity to bytes Serialize() ([]byte, error) }
IdentitySerializer serializes identities
type LocalSigner ¶
type LocalSigner interface { SignatureHeaderMaker Signer }
LocalSigner is a temporary stub interface which will be implemented by the local MSP
func NewSigner ¶
func NewSigner() LocalSigner
NewSigner returns a new instance of the msp-based LocalSigner. It assumes that the local msp has been already initialized. Look at mspmgmt.LoadLocalMsp for further information.
func NewSigner() crypto.LocalSigner { return &mspSigner{} }
type MspEnv ¶
MspEnv 组织信息
func (*MspEnv) InitCrypto ¶
func (m *MspEnv) InitCrypto() (*factory.FactoryOpts, error)
InitCrypto initializes crypto for this peer
type SignatureHeaderMaker ¶
type SignatureHeaderMaker interface { // NewSignatureHeader creates a SignatureHeader with the correct signing identity and a valid nonce NewSignatureHeader() (*cb.SignatureHeader, error) }
SignatureHeaderMaker creates a new SignatureHeader
Click to show internal directories.
Click to hide internal directories.