infincia / bip39-rs

A Rust implementation of BIP-0039
Apache License 2.0
54 stars 61 forks source link

Identify parts of the code where implementing standard traits would make sense #8

Open steveatinfincia opened 6 years ago

steveatinfincia commented 6 years ago

Things like AsRef, Into, From, etc.

AsRef<str> and AsRef<[u8]> are implemented in a few spots now, in ways that are hopefully unsurprising and where the semantic meaning is obvious. There may be others that would be useful without making the crate unnecessarily complicated to use.

Semi-related to #4

lsaether commented 6 years ago

Hey thanks for building this! I was really surprised (but pleasantly surprised!) when I got a hit for my search of "bip39" on crates.io. I'm currently working on building an Ethereum light wallet / signing client and this will help greatly.

If I have time I'll definitely contribute back by implementing some of these standard traits.

steveatinfincia commented 6 years ago

Hi @lsaether, I'm glad you find the crate useful!

If you run in to any problems using it, or if there is anything you would like to see added or changed, please let me know and I will gladly help :)