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 IDStore ¶
type IDStore interface { RegisterNode(node pkg.Identifier, farm pkg.FarmID, version string, loc geoip.Location) (string, error) RegisterFarm(tid uint64, name string, email string, wallet []string) (pkg.FarmID, error) }
IDStore is the interface defining the client side of an identity store
func NewHTTPIDStore ¶
NewHTTPIDStore returns a HTTP IDStore client
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.