identity

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdentityUsageThreshold

func GetIdentityUsageThreshold() time.Duration

func SetIdentityUsageThreshold

func SetIdentityUsageThreshold(duration time.Duration)

Types

type Mapper

type Mapper interface {
	Put(pkiID common.PKIidType, identity api.PeerIdentityType) error

	Get(pkiID common.PKIidType) (api.PeerIdentityType, error)

	Sign(msg []byte) ([]byte, error)

	Verify(vkID, signature, message []byte) error

	GetPKIidOfCert(api.PeerIdentityType) common.PKIidType

	SuspectPeers(isSuspected api.PeerSuspector)

	IdentityInfo() api.PeerIdentitySet

	Stop()
}

func NewIdentityMapper

func NewIdentityMapper(mcs api.MessageCryptoService, selfIdentity api.PeerIdentityType, onPurge purgeTrigger, sa api.SecurityAdvisor) Mapper

Jump to

Keyboard shortcuts

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