Expand description
Β§Artimonist
Artimonist is a chart-based tool for creating mnemonics and wallets.
Β§Examples
use artimonist::{SimpleDiagram, GenericDiagram, BIP85, Password, Wif};
let mut mx = [[None; 7]; 7];
mx[1][1] = Some('π');
mx[1][5] = Some('π');
mx[3][3] = Some('π©');
mx[5][1] = Some('π¦');
mx[5][5] = Some('π');
let master = SimpleDiagram(mx).to_master("π²ππ".as_bytes())?;
let mnemonic = master.bip85_mnemonic(0, 15, Default::default())?;
assert_eq!(&mnemonic, "nice dumb debris type pair until convince pet depend dragon seed exchange rebel belt alcohol");
assert_eq!(master.bip85_wallet(0)?.pk, "L3X74sTsPBpoJx7MNWt36qnsGE1ubdf2BQVTczU7i14D94BhNdmc");
assert_eq!(master.bip85_master(0)?, "xprv9s21ZrQH143K3Dm1EavEpwYyfZD7su3245k5CES8qnt6VVxznxnPqMnUx5cFLJDao9mcyELm9UVNbBTMYodNabKmvcj3WazUaRNqpz4qd7A");
assert_eq!(master.bip85_password(0, 20, Password::Emoji)?, "π¬ππππππΈπ§π·βππ²ππͺππβππβ‘");The simple diagram looks like this:
| π | π | |||||
| π© | ||||||
| π¦ | π | |||||
Re-exportsΒ§
ModulesΒ§
- error
- Global error definition
StructsΒ§
- Animate
Diagram - Animate Diagram
- Complex
Diagram - Complex Diagram
- Mnemonic
- A BIP39 mnemonic phrase, which is a sequence of words used to represent a seed for cryptographic purposes.
- Simple
Diagram - Simple Diagram
- Wif
- String wrapper for extra functions
EnumsΒ§
ConstantsΒ§
- NETWORK
- Bitcoin network
TraitsΒ§
- BIP32
- BIP32 derivation
- BIP38
- BIP38 trait for encrypting and decrypting private keys.
- BIP39
- BIP39 Derivation for Xpriv
- BIP44
- BIP44 derivation
- BIP49
- BIP49 derivation
Derivation scheme for P2WPKH-nested-in-P2SH based accounts. - BIP84
- BIP84 derivation
- BIP85
- BIP85 Derivation for Xpriv
- Diagram
- Diagram
- Generic
Diagram - Generic Diagram
diagram implementation for any matrix - Mnemonic
Encryption - Encrypt mnemonic