identity

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL