Skip to content

Commit

Permalink
Address review findings
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Varlakov <[email protected]>
  • Loading branch information
survived committed Sep 30, 2024
1 parent 0cd5fd9 commit 1454f6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "hd-wallet"
version = "0.5.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "HD deteministic wallets derivation"
description = "HD wallets derivation"
repository = "https://github.com/dfns/slip-10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
14 changes: 2 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,6 @@ impl<'de, E: Curve> serde::Deserialize<'de> for ExtendedKeyPair<E> {
pub trait HdWallet<E: Curve>: DeriveShift<E> {
/// Derives child extended public key from parent extended public key
///
/// Returns error if child key is not defined for given child index
///
/// ### Example
/// Derive a master public key m/1
/// ```rust
Expand All @@ -346,8 +344,6 @@ pub trait HdWallet<E: Curve>: DeriveShift<E> {

/// Derives child key pair (extended secret key + public key) from parent key pair
///
/// Returns error if child key is not defined for given child index
///
/// ### Example
/// Derive child key m/1<sub>H</sub> from master key
/// ```rust
Expand Down Expand Up @@ -389,8 +385,7 @@ pub trait HdWallet<E: Curve>: DeriveShift<E> {
/// yields an error, it's propagated to the caller.
///
/// Returns:
/// * `Ok(Ok(child_key_pair))` if derivation was successful
/// * `Ok(Err(derive_err))` if child key is not defined for given path
/// * `Ok(child_key_pair)` if derivation was successful
/// * `Err(index_err)` if path contained `Err(index_err)`
///
/// ### Example
Expand Down Expand Up @@ -426,8 +421,6 @@ pub trait HdWallet<E: Curve>: DeriveShift<E> {
///
/// If derivation path is empty, `parent_key` is returned
///
/// Returns error if child key is not defined for given child index
///
/// ### Example
/// Derive a child key with path m/1/10/1<sub>H</sub>
/// ```rust
Expand Down Expand Up @@ -462,8 +455,7 @@ pub trait HdWallet<E: Curve>: DeriveShift<E> {
/// yields an error, it's propagated to the caller.
///
/// Returns:
/// * `Ok(Ok(child_pk))` if derivation was successful
/// * `Ok(Err(derive_err))` if child key is not defined for given path
/// * `Ok(child_pk)` if derivation was successful
/// * `Err(index_err)` if path contained `Err(index_err)`
///
/// ### Example
Expand Down Expand Up @@ -499,8 +491,6 @@ pub trait HdWallet<E: Curve>: DeriveShift<E> {
///
/// If derivation path is empty, `parent_public_key` is returned
///
/// Returns error if child key is not defined for given child index
///
/// ### Example
/// Derive a child key with path m/1/10
/// ```rust
Expand Down

0 comments on commit 1454f6c

Please sign in to comment.