Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["crates/bip39", "crates/bip32"]
members = ["crates/bip39", "crates/bip32", "crates/bip44"]
resolver = "2"

[workspace.package]
Expand Down
30 changes: 30 additions & 0 deletions crates/bip44/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "khodpay-bip44"
version = "0.1.0"
edition = "2021"
rust-version = "1.81"
authors = ["KhodPay Team"]
license = "MIT OR Apache-2.0"
description = "Production-ready Rust implementation of BIP44 multi-account hierarchy for deterministic wallets"
repository = "https://github.com/khodpay/rust-wallet"
documentation = "https://docs.rs/khodpay-bip44"
homepage = "https://github.com/khodpay/rust-wallet"
readme = "README.md"
keywords = ["bitcoin", "cryptocurrency", "bip44", "wallet", "hierarchical"]
categories = ["cryptography", "no-std"]

[dependencies]
khodpay-bip32 = { version = "0.2.0", path = "../bip32" }
thiserror = "1.0"

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dev-dependencies]
hex = "0.4"

[features]
default = []
serde = ["dep:serde"]
22 changes: 22 additions & 0 deletions crates/bip44/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! # BIP-44: Multi-Account Hierarchy for Deterministic Wallets
//!
//! This crate provides a Rust implementation of [BIP-44](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki),
//! which defines a logical hierarchy for deterministic wallets based on BIP-32.
//!
//! ## BIP-44 Path Structure
//!
//! ```text
//! m / purpose' / coin_type' / account' / change / address_index
//! ```
//!
//! - **purpose'**: Constant set to 44' (or 49', 84', 86' for other standards)
//! - **coin_type'**: Cryptocurrency type (0' for Bitcoin, 60' for Ethereum, etc.)
//! - **account'**: Account index (allows multiple accounts per coin)
//! - **change**: 0 for external (receiving), 1 for internal (change)
//! - **address_index**: Address index within the chain

#![warn(missing_docs)]
#![warn(rustdoc::broken_intra_doc_links)]
#![deny(unsafe_code)]

// Module structure - to be implemented in subsequent tasks
2 changes: 1 addition & 1 deletion docs/implementations/bip44_tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Here's your comprehensive task list organized by phases and priority. Each task

## 🚀 PHASE 1: Foundation & Setup (HIGH Priority)

### 🔲 Task 01: Create `crates/bip44` directory structure and Cargo.toml with dependencies
### Task 01: Create `crates/bip44` directory structure and Cargo.toml with dependencies
Create crate structure with `khodpay-bip32`, `thiserror` dependencies, and optional `serde` feature.

### 🔲 Task 02: Define Error enum with proper error types using thiserror
Expand Down