Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity interface { Put(pkiID common.PKIidType, identity common.PeerIdentityType) error Get(pkiID common.PKIidType) (common.PeerIdentityType, error) Sign(msg []byte) ([]byte, error) Verify(vkID common.PKIidType, signature, message []byte) error GetPKIidOfCert(common.PeerIdentityType) common.PKIidType }
Identity holds identities of peer
func NewIdentity ¶
func NewIdentity(cfg *config.IdentityConfig, selfIdentity common.PeerIdentityType, onPurge purgeTrigger) (Identity, error)
NewIdentity returns a new Identity instance
Click to show internal directories.
Click to hide internal directories.