#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

#1092 in Cryptography

Download history 18739/week @ 2024-07-28 20292/week @ 2024-08-04 21588/week @ 2024-08-11 24020/week @ 2024-08-18 22200/week @ 2024-08-25 22257/week @ 2024-09-01 22846/week @ 2024-09-08 21272/week @ 2024-09-15 23005/week @ 2024-09-22 26307/week @ 2024-09-29 30804/week @ 2024-10-06 26833/week @ 2024-10-13 52014/week @ 2024-10-20 51018/week @ 2024-10-27 61001/week @ 2024-11-03 52219/week @ 2024-11-10

217,796 downloads per month
Used in 132 crates (26 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