#key-derivation #elliptic-curve #hd-wallet #derivation #bip-39 #mnemonic

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

12 releases (6 breaking)

0.6.0-pre.0 Sep 23, 2024
0.5.2 Jul 17, 2024
0.5.1 May 29, 2023
0.5.0 Mar 28, 2023
0.0.0 Dec 28, 2018

#802 in Cryptography

Download history 17307/week @ 2024-07-31 22490/week @ 2024-08-07 21300/week @ 2024-08-14 23904/week @ 2024-08-21 21142/week @ 2024-08-28 23217/week @ 2024-09-04 23877/week @ 2024-09-11 20652/week @ 2024-09-18 24213/week @ 2024-09-25 27636/week @ 2024-10-02 27966/week @ 2024-10-09 35335/week @ 2024-10-16 54852/week @ 2024-10-23 59107/week @ 2024-10-30 55839/week @ 2024-11-06 52908/week @ 2024-11-13

232,496 downloads per month
Used in 137 crates (29 directly)

Apache-2.0 OR MIT

75KB
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.81 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-2024 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.7–2MB
~32K SLoC