Module sn_node::state_db [−][src]
Expand description
Docs
Structs
Keypair | An ed25519 keypair. |
PublicKey | An ed25519 public key. |
SecretKey | An EdDSA secret key. |
Constants
KEYPAIR_LENGTH | The length of an ed25519 |
PUBLIC_KEY_LENGTH | The length of an ed25519 |
Functions
get_network_keypair | Returns Some(KeyPair) or None if file doesn’t exist. |
get_reward_pk | Returns Some(PublicKey) or None if file doesn’t exist. It assumes it’s hex-encoded. |
store_network_keypair | Writes the network keypair to disk. |
store_new_reward_keypair | Writes the public and secret key (hex-encoded) to different locations at disk. |