#key-derivation #derivation #bip-39 #mnemonic #elliptic-curve #generate #crypto

no-std bip32

BIP32 hierarchical key derivation implemented in a generic, no_std-friendly manner. Supports deriving keys using the pure Rust k256 crate or the C library-backed secp256k1 crate

10 releases (5 breaking)

0.5.1 May 29, 2023
0.5.0 Mar 28, 2023
0.4.0 May 11, 2022
0.3.0 Jan 6, 2022
0.0.0 Dec 28, 2018

#1136 in Cryptography

Download history 22571/week @ 2024-02-13 19700/week @ 2024-02-20 18014/week @ 2024-02-27 17634/week @ 2024-03-05 21445/week @ 2024-03-12 20039/week @ 2024-03-19 19819/week @ 2024-03-26 18872/week @ 2024-04-02 17277/week @ 2024-04-09 22079/week @ 2024-04-16 20293/week @ 2024-04-23 17103/week @ 2024-04-30 20070/week @ 2024-05-07 18796/week @ 2024-05-14 18221/week @ 2024-05-21 20169/week @ 2024-05-28

80,572 downloads per month
Used in 84 crates (20 directly)

Apache-2.0 OR MIT

72KB
1.5K SLoC

BIP32: HD Wallets

Crate Docs Apache 2.0 Licensed MSRV Safety Dance Build Status

BIP32 hierarchical key derivation implemented in a generic, no_std-friendly manner. Supports deriving keys using the pure Rust k256 crate or the C library-backed secp256k1 crate.

Diagram

Documentation

About

BIP32 is an algorithm for generating a hierarchy of elliptic curve keys, a.k.a. "wallets", from a single seed value. A related algorithm also implemented by this crate, BIP39, provides a way to derive the seed value from a set of 24-words from a preset list, a.k.a. a "mnemonic".

Minimum Supported Rust Version

Rust 1.65 or newer.

In the future, we reserve the right to change MSRV (i.e. MSRV is out-of-scope for this crate's SemVer guarantees), however when we do it will be accompanied by a minor version bump.

License

Copyright © 2020-2023 iqlusion

bip32.rs is distributed under the terms of either the MIT license or the Apache License (Version 2.0), at your option.

See LICENSE-APACHE (Apache License, Version 2.0) and LICENSE-MIT for further details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.6–1.8MB
~28K SLoC