identity

package
v0.1.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package identity defines the self-certifying, shareable ENIG identifiers.

Index

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 ValidAccountID(id string) bool

func ValidDeviceID

func ValidDeviceID(id string) bool

func ValidGroupID

func ValidGroupID(id string) bool

func ValidRecipientID

func ValidRecipientID(id string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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