Module mina_secrets::secret_box
source · [−]Expand description
This module contains utilties for loading keypair from wallet files that are generated from mina-keypair-gen tool
Example
use mina_secrets::secret_box::*;
let wallet_json = include_str!("../../tests/data/test-wallet");
let sb: SecretBox = wallet_json.try_into().unwrap();
let wallet_json_exported: String = sb.try_into().unwrap();
Structs
Keypair structure
Type that represents a wallet loaded from a wallet file
that is generated by mina-keypair-gen tool
Enums
Error type of handling wallet files generated from mina-keypair-gen tool