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 MSPIndentities
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnrollIdentity ¶
func NewMSPIdentity ¶
func NewMSPIdentityBytes ¶
func NewMSPIdentityFromPath ¶
func NewMSPIdentityRaw ¶
Types ¶
type MSPIndentities ¶
type MSPIndentities struct { // identity from 'signcerts' MSP api.Identity // identities from 'admincerts' Admins []api.Identity // indentities from 'users' Users []api.Identity }
MSPIndentities - contains all parsed identities from msp folder Should be used instead of single `api.Identity` which contains ONLY msp identity
func NewMSPIndentitiesFromPath ¶
func NewMSPIndentitiesFromPath(mspID string, mspPath string) (*MSPIndentities, error)
NewMSPIndentitiesFromPath - 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.