Documentation
¶
Overview ¶
Package identity defines the self-certifying, shareable ENIG identifiers.
Index ¶
- Constants
- func AccountID(public protocol.NodePublicIdentity) string
- func DeviceID(public protocol.NodePublicIdentity) string
- func GroupID(creator protocol.NodePublicIdentity, genesisNonce, genesisContext []byte) string
- func ValidAccountID(id string) bool
- func ValidDeviceID(id string) bool
- func ValidGroupID(id string) bool
- func ValidRecipientID(id string) bool
Constants ¶
View Source
const ( AccountPrefix = "ENIGC1" DevicePrefix = "ENIGD1" GroupPrefix = "ENIGG1" GenesisNonceBytes = 32 )
Variables ¶
This section is empty.
Functions ¶
func AccountID ¶
func AccountID(public protocol.NodePublicIdentity) string
AccountID is a stable fingerprint of the account authorization key. Device changes therefore do not change the shareable address.
func DeviceID ¶
func DeviceID(public protocol.NodePublicIdentity) string
DeviceID binds a device identifier to its signing key.
func GroupID ¶
func GroupID(creator protocol.NodePublicIdentity, genesisNonce, genesisContext []byte) string
GroupID binds a group address to its creator, random genesis nonce, and a bounded canonical genesis policy commitment.
func ValidAccountID ¶
func ValidDeviceID ¶
func ValidGroupID ¶
func ValidRecipientID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.