Module safe_network::node::cfg::keypair_storage
source · [−]Expand description
File storage for keypairs
Structs
Constants
The length of an ed25519 Keypair
, in bytes.
The length of an ed25519 PublicKey
, in bytes.
Functions
Returns Some(KeyPair) or None if file doesn’t exist.
Returns Some(PublicKey) or None if file doesn’t exist. It assumes it’s hex-encoded.
Writes the network keypair to disk.
Writes the public and secret key (hex-encoded) to different locations at disk.