Skip to content

Commit

Permalink
remove solana-sdk from solana-zk-token-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Nov 1, 2024
1 parent a96f16f commit 4c0fee7
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 24 deletions.
5 changes: 4 additions & 1 deletion Cargo.lock

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

5 changes: 4 additions & 1 deletion programs/sbf/Cargo.lock

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

7 changes: 5 additions & 2 deletions zk-token-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ num-derive = { workspace = true }
num-traits = { workspace = true }
solana-curve25519 = { workspace = true }
solana-instruction = { workspace = true, features = ["std"] }
solana-pubkey = { workspace = true }
solana-pubkey = { workspace = true, features = ["bytemuck"] }
thiserror = { workspace = true }

[dev-dependencies]
Expand All @@ -37,7 +37,10 @@ serde_derive = { workspace = true }
serde_json = { workspace = true }
sha3 = { workspace = true }
solana-derivation-path = { workspace = true }
solana-sdk = { workspace = true }
solana-seed-derivable = { workspace = true }
solana-seed-phrase = { workspace = true }
solana-signature = { workspace = true }
solana-signer = { workspace = true }
subtle = { workspace = true }
zeroize = { workspace = true, features = ["zeroize_derive"] }

Expand Down
14 changes: 6 additions & 8 deletions zk-token-sdk/src/encryption/auth_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ use {
base64::{prelude::BASE64_STANDARD, Engine},
sha3::{Digest, Sha3_512},
solana_derivation_path::DerivationPath,
solana_sdk::{
signature::Signature,
signer::{
keypair::generate_seed_from_seed_phrase_and_passphrase, EncodableKey, SeedDerivable,
Signer, SignerError,
},
},
solana_seed_derivable::SeedDerivable,
solana_seed_phrase::generate_seed_from_seed_phrase_and_passphrase,
solana_signature::Signature,
solana_signer::{EncodableKey, Signer, SignerError},
std::{
convert::TryInto,
error, fmt,
Expand Down Expand Up @@ -268,7 +265,8 @@ impl fmt::Display for AeCiphertext {
mod tests {
use {
super::*,
solana_sdk::{pubkey::Pubkey, signature::Keypair, signer::null_signer::NullSigner},
solana_pubkey::Pubkey,
solana_signer::{keypair::Keypair, null_signer::NullSigner},
};

#[test]
Expand Down
14 changes: 6 additions & 8 deletions zk-token-sdk/src/encryption/elgamal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ use {
},
serde::{Deserialize, Serialize},
solana_derivation_path::DerivationPath,
solana_sdk::{
signature::Signature,
signer::{
keypair::generate_seed_from_seed_phrase_and_passphrase, EncodableKey, EncodableKeypair,
SeedDerivable, Signer, SignerError,
},
},
solana_seed_derivable::SeedDerivable,
solana_seed_phrase::generate_seed_from_seed_phrase_and_passphrase,
solana_signature::Signature,
solana_signer::{EncodableKey, EncodableKeypair, Signer, SignerError},
std::convert::TryInto,
subtle::{Choice, ConstantTimeEq},
zeroize::Zeroize,
Expand Down Expand Up @@ -870,7 +867,8 @@ mod tests {
super::*,
crate::encryption::pedersen::Pedersen,
bip39::{Language, Mnemonic, MnemonicType, Seed},
solana_sdk::{pubkey::Pubkey, signature::Keypair, signer::null_signer::NullSigner},
solana_pubkey::Pubkey,
solana_signer::{keypair::Keypair, null_signer::NullSigner},
std::fs::{self, File},
};

Expand Down
5 changes: 1 addition & 4 deletions zk-token-sdk/src/sigma_proofs/pubkey_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ impl PubkeyValidityProof {

#[cfg(test)]
mod test {
use {
super::*,
solana_sdk::{pubkey::Pubkey, signature::Keypair},
};
use {super::*, solana_pubkey::Pubkey, solana_signer::keypair::Keypair};

#[test]
fn test_pubkey_proof_correctness() {
Expand Down

0 comments on commit 4c0fee7

Please sign in to comment.