#key-derivation #derivation #bip-39 #mnemonic #elliptic-curve #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

#973 in Cryptography

Download history 13754/week @ 2023-12-14 9238/week @ 2023-12-21 8077/week @ 2023-12-28 15555/week @ 2024-01-04 19139/week @ 2024-01-11 20798/week @ 2024-01-18 21725/week @ 2024-01-25 19442/week @ 2024-02-01 21969/week @ 2024-02-08 21199/week @ 2024-02-15 18799/week @ 2024-02-22 17818/week @ 2024-02-29 19757/week @ 2024-03-07 20638/week @ 2024-03-14 19835/week @ 2024-03-21 15604/week @ 2024-03-28

78,740 downloads per month
Used in 69 crates (18 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