Skip to content

Commit

Permalink
remove direct dependence on bip0039, prefer zcash_primitives::zip339 …
Browse files Browse the repository at this point in the history
…instead
  • Loading branch information
zancas committed Apr 3, 2024
1 parent f3cc5de commit 508e290
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 36 deletions.
46 changes: 16 additions & 30 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion darkside-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ rand = "0.8.5"
hex = "0.3"
tracing-subscriber = "0.3.15"
itertools = "0.10.5"
bip0039 = "0.10.1"
tracing-test = { version = "0.2.4", features = ["no-env-filter"] }
tracing = "0.1.37"
tracing-log = "0.1.3"
Expand Down
1 change: 0 additions & 1 deletion integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ json = "0.12.4"
log = "0.4.17"
hex = "0.3"
itertools = "0.10.5"
bip0039 = "0.10.1"
serde_json = "1.0.107"
2 changes: 1 addition & 1 deletion integration-tests/tests/integrations.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#![forbid(unsafe_code)]

use bip0039::Mnemonic;
use json::JsonValue;
use orchard::tree::MerkleHashOrchard;
use shardtree::store::memory::MemoryShardStore;
use shardtree::ShardTree;
use std::{fs::File, path::Path, str::FromStr, time::Duration};
use zcash_address::unified::Fvk;
use zcash_client_backend::encoding::encode_payment_address;
use zcash_primitives::zip339::Mnemonic;
use zcash_primitives::{
consensus::{BlockHeight, Parameters},
memo::Memo,
Expand Down
1 change: 0 additions & 1 deletion zingolib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ ripemd160 = "0.9.1"
sha2 = "0.9.5"
base58 = "0.1.0"
bech32 = "0.9.0"
bip0039 = "0.10.1"
sodiumoxide = "0.2.5"
byteorder = "1"
pairing = "0.23"
Expand Down
2 changes: 1 addition & 1 deletion zingolib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::blaze::fetch_full_transaction::TransactionContext;
use crate::wallet::data::{SpendableSaplingNote, TransactionRecord};
use crate::wallet::notes::ShieldedNoteInterface;

use bip0039::Mnemonic;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use futures::Future;
use json::JsonValue;
Expand Down Expand Up @@ -36,6 +35,7 @@ use zcash_primitives::sapling::SaplingIvk;
use zcash_primitives::transaction::builder::Progress;
use zcash_primitives::transaction::fees::fixed::FeeRule as FixedFeeRule;
use zcash_primitives::transaction::{self, Transaction};
use zcash_primitives::zip339::Mnemonic;
use zcash_primitives::{
consensus::BlockHeight,
legacy::Script,
Expand Down
2 changes: 1 addition & 1 deletion zingolib/src/wallet/keys/unified.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use std::{
};

use append_only_vec::AppendOnlyVec;
use bip0039::Mnemonic;
use byteorder::{ReadBytesExt, WriteBytesExt};
use orchard::keys::Scope;
use zcash_primitives::zip339::Mnemonic;

use secp256k1::SecretKey;
use zcash_address::unified::{Container, Encoding, Fvk, Ufvk};
Expand Down

0 comments on commit 508e290

Please sign in to comment.