Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPair ¶
type KeyPair struct { Pub ed25519.PublicKey Priv ed25519.PrivateKey }
func NewKeyPair ¶
func NewKeyPair() *KeyPair
type KeyStore ¶
type KeyStore interface { PutKeys(username string, keyPair *KeyPair) error LoadKeys(userName, password string) (*KeyPair, error) }
func NewLevelDBKeyStore ¶
type LevelDBKeyStore ¶
type LevelDBKeyStore struct {
// contains filtered or unexported fields
}
LevelDBKeyStore is a temporary solution for keeping hot node keys. The target state is an encrypted storage with password authentication.
Click to show internal directories.
Click to hide internal directories.