Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SeedVersion1 (binary seed) SeedVersion1 = versioned.MustParse("1.0.0") // SeedVersion11 (json mnemonic) SeedVersion11 = versioned.MustParse("1.1.0") // SeedVersionLatest link to latest seed version SeedVersionLatest = SeedVersion11 )
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
func LoadLegacyKeyPair ¶
LoadLegacyKeyPair load keypair without deprecated message for converted
Click to show internal directories.
Click to hide internal directories.