Skip to content

Commit 913e96a

Browse files
authored
chore: changed slipped10 to near-slip10 (#143)
1 parent 6c5909a commit 913e96a

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bip39 = "2.0.0"
3131
serde = { version = "1.0", features = ["derive"], default-features = false }
3232
serde_json = "1.0.57"
3333
serde_dbgfmt = "0.1.0"
34-
slipped10 = { version = "0.4.6" }
34+
near-slip10 = { version = "0.4.7" }
3535
url = { version = "2", features = ["serde"] }
3636
tokio = { version = "1.0", default-features = false }
3737
tracing = "0.1"
@@ -54,7 +54,7 @@ near-account-id = { version = "2.0.0", features = ["serde", "borsh"] }
5454
near-gas = { version = "0.3", features = ["serde", "borsh"] }
5555
near-token = { version = "0.3", features = ["serde", "borsh"] }
5656
near-abi = "0.4.2"
57-
near-ledger = "0.9.1"
57+
near-ledger = "0.9.3"
5858
near-openapi-client = "0.8"
5959
near-openapi-types = "0.8"
6060

api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bip39 = { workspace = true, features = ["rand"] }
2828
serde = { workspace = true, features = ["derive"] }
2929
serde_json.workspace = true
3030
serde_dbgfmt.workspace = true
31-
slipped10.workspace = true
31+
near-slip10.workspace = true
3232
url.workspace = true
3333
tokio = { workspace = true, default-features = false, features = ["time"] }
3434
tracing.workspace = true

api/src/signer/ledger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use near_api_types::{
66
delegate_action::{DelegateAction, NonDelegateAction, SignedDelegateAction},
77
},
88
};
9-
use slipped10::BIP32Path;
9+
use near_slip10::BIP32Path;
1010
use tokio::sync::OnceCell;
1111
use tracing::{debug, info, instrument, warn};
1212

api/src/signer/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ use near_api_types::{
124124
};
125125

126126
use borsh::{BorshDeserialize, BorshSerialize};
127+
use near_slip10::BIP32Path;
127128
use serde::{Deserialize, Serialize};
128-
use slipped10::BIP32Path;
129129
use tracing::{debug, instrument, warn};
130130

131131
use crate::{
@@ -765,9 +765,9 @@ pub fn get_secret_key_from_seed(
765765
) -> Result<SecretKey, SecretError> {
766766
let master_seed =
767767
bip39::Mnemonic::parse(master_seed_phrase)?.to_seed(password.unwrap_or_default());
768-
let derived_private_key = slipped10::derive_key_from_path(
768+
let derived_private_key = near_slip10::derive_key_from_path(
769769
&master_seed,
770-
slipped10::Curve::Ed25519,
770+
near_slip10::Curve::Ed25519,
771771
&seed_phrase_hd_path,
772772
)
773773
.map_err(|_| SecretError::DeriveKeyInvalidIndex)?;

0 commit comments

Comments
 (0)