Documentation
¶
Overview ¶
Package nodeks loads or creates the daemon DHT node identity (node.key).
Index ¶
- type Store
- func (s *Store) Address() a2al.Address
- func (s *Store) Ed25519PrivateKey(addr a2al.Address) (ed25519.PrivateKey, error)
- func (s *Store) Generate(crypto.KeyType) (crypto.PrivateKey, error)
- func (s *Store) List() ([]a2al.Address, error)
- func (s *Store) PrivateKey() ed25519.PrivateKey
- func (s *Store) PublicKey(addr a2al.Address) ([]byte, error)
- func (s *Store) Sign(addr a2al.Address, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a single-identity crypto.KeyStore for the DHT node (not an app Agent).
func LoadOrGenerate ¶
LoadOrGenerate reads hex-encoded 64-byte Ed25519 private key from path, or creates one.
func (*Store) Ed25519PrivateKey ¶
Ed25519PrivateKey implements the optional host.KeyStore exporter.
func (*Store) PrivateKey ¶
func (s *Store) PrivateKey() ed25519.PrivateKey
PrivateKey returns the node's Ed25519 private key for QUIC.
Click to show internal directories.
Click to hide internal directories.