Documentation ¶
Index ¶
- func NewCustomIdentityManager(orgName string, cryptoProvider coreApi.CryptoSuite, ...) (mspApi.IdentityManager, error)
- type CustomIdentityManager
- type CustomMSPProvider
- type CustomMspPkg
- type User
- func (u *User) EnrollmentCertificate() []byte
- func (u *User) Identifier() *mspApi.IdentityIdentifier
- func (u *User) PrivateKey() coreApi.Key
- func (u *User) PublicVersion() mspApi.Identity
- func (u *User) Serialize() ([]byte, error)
- func (u *User) Sign(msg []byte) ([]byte, error)
- func (u *User) Verify(msg []byte, sig []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomIdentityManager ¶
func NewCustomIdentityManager(orgName string, cryptoProvider coreApi.CryptoSuite, config fabApi.EndpointConfig, mspConfigPath string) (mspApi.IdentityManager, error)
NewCustomIdentityManager Constructor for a custom identity manager.
Types ¶
type CustomIdentityManager ¶
type CustomIdentityManager struct { *msp.IdentityManager // contains filtered or unexported fields }
CustomIdentityManager is used for retriving user's identity manager
func (*CustomIdentityManager) GetSigningIdentity ¶
func (c *CustomIdentityManager) GetSigningIdentity(id string) (mspApi.SigningIdentity, error)
GetSigningIdentity will sign the given object with provided key,
type CustomMSPProvider ¶
type CustomMSPProvider struct { msppvdr.MSPProvider // contains filtered or unexported fields }
CustomMSPProvider will provide custom msp provider
func (*CustomMSPProvider) IdentityManager ¶
func (p *CustomMSPProvider) IdentityManager(orgName string) (mspApi.IdentityManager, bool)
IdentityManager returns the organization's identity manager
type CustomMspPkg ¶
type CustomMspPkg struct { defmsp.ProviderFactory CryptoPath string }
CustomMspPkg is will provide custom msp pkg
func (*CustomMspPkg) CreateIdentityManagerProvider ¶
func (m *CustomMspPkg) CreateIdentityManagerProvider(config fabApi.EndpointConfig, cryptoProvider coreApi.CryptoSuite, userStore mspApi.UserStore) (msp.IdentityManagerProvider, error)
CreateIdentityManagerProvider returns a new custom implementation of msp provider
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is representation of a Fabric user
func (*User) EnrollmentCertificate ¶
EnrollmentCertificate return enrollment certificate
func (*User) Identifier ¶
func (u *User) Identifier() *mspApi.IdentityIdentifier
Identifier returns user identifier
func (*User) PublicVersion ¶
PublicVersion returns the public parts of this identity
Click to show internal directories.
Click to hide internal directories.