#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

#904 in Cryptography

Download history 23716/week @ 2024-08-17 22246/week @ 2024-08-24 22371/week @ 2024-08-31 22520/week @ 2024-09-07 21452/week @ 2024-09-14 23045/week @ 2024-09-21 26148/week @ 2024-09-28 30875/week @ 2024-10-05 26429/week @ 2024-10-12 50833/week @ 2024-10-19 51731/week @ 2024-10-26 59944/week @ 2024-11-02 53810/week @ 2024-11-09 52689/week @ 2024-11-16 50404/week @ 2024-11-23 47274/week @ 2024-11-30

211,505 downloads per month
Used in 153 crates (31 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
~31K SLoC