Commit Graph

6 Commits

Author SHA1 Message Date
Ryan Heywood 0f31cd2424
keyfork-mnemonic-util: .seed() => .entropy(), make new bip39-compliant .seed() method 2023-10-07 23:41:24 -05:00
Ryan Heywood de6d8e4b56
keyfork-mnemonic-from-seed: trim unnecessary 2023-10-02 22:04:05 -05:00
Ryan Heywood b810ab2e90
cargo fmt 2023-09-07 15:20:32 -05:00
Ryan Heywood da09b95bae
keyfork-mnemonic-util: Mnemonic::seed(&self) -> Vec<u8> 2023-08-25 05:19:47 -05:00
Ryan Heywood 76c9214d73
keyfork-mnemonic-util: impl FromStr for Mnemonic
This changes the actual structure of Mnemonic since it requires
exclusively owned types when implementing FromStr. Now, Mnemonic
contains an Arc. Thread safety is required because of the Tokio
multithreaded runtime, hence an Arc instead of an Rc.

This does add some level of burden for people instantiating Mnemonics,
but `Wordlist::arc(self) -> Arc<Self>` has been provided as a
convenience method to make working with mnemonics easier.
2023-08-24 21:56:35 -05:00
Ryan Heywood 5d7a3c99ba
keyfork-mnemonic-util: split mnemonic utilities out of keyfork-mnemonic-generate 2023-08-18 22:52:37 -05:00