Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(path string) (pkg.IdentityManager, error)
NewManager creates an identity daemon from seed The daemon will auto generate a new seed if the path does not exist
Types ¶
type KeyPair ¶
type KeyPair struct { PrivateKey ed25519.PrivateKey PublicKey ed25519.PublicKey }
KeyPair holds a public and private side of an ed25519 key pair
func GenerateKeyPair ¶
GenerateKeyPair creates a new KeyPair from a random seed
func LoadKeyPair ¶
LoadKeyPair reads a seed from a file located at path and re-create a KeyPair using the seed
Click to show internal directories.
Click to hide internal directories.