Documentation ¶
Index ¶
- func NewEnrollIdentity(privateKey interface{}) (api.Identity, error)
- func NewMSPIdentity(mspId string, certPath string, keyPath string) (api.Identity, error)
- func NewMSPIdentityBytes(mspId string, certBytes []byte, keyBytes []byte) (api.Identity, error)
- func NewMSPIdentityFromPath(mspId string, mspPath string) (api.Identity, error)
- func NewMSPIdentityRaw(mspId string, cert *x509.Certificate, privateKey interface{}) (api.Identity, error)
- type MSPIdentities
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnrollIdentity ¶
func NewMSPIdentity ¶
func NewMSPIdentityBytes ¶
func NewMSPIdentityFromPath ¶
func NewMSPIdentityRaw ¶
Types ¶
type MSPIdentities ¶
type MSPIdentities struct { // identity from 'signcerts' MSP api.Identity // identities from 'admincerts' Admins []api.Identity // identities from 'users' Users []api.Identity }
MSPIdentities - contains all parsed identities from msp folder Should be used instead of single `api.Identity` which contains ONLY msp identity
func NewMSPIdentitiesFromPath ¶
func NewMSPIdentitiesFromPath(mspID string, mspPath string) (*MSPIdentities, error)
NewMSPIdentitiesFromPath - parse all certificates(msp,admins,users) from MSP folder. Came to replace legacy `util.LoadKeyPairFromMSP` method
Click to show internal directories.
Click to hide internal directories.