Skip to content

Commit

Permalink
remove solana-sdk from solana-zk-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Nov 1, 2024
1 parent a820526 commit 84fe667
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 20 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.

8 changes: 7 additions & 1 deletion zk-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ 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"] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
solana-pubkey = { workspace = true, features = ["bytemuck"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = { workspace = true }
wasm-bindgen = { workspace = true }
Expand Down
14 changes: 6 additions & 8 deletions zk-sdk/src/encryption/auth_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ use {
sha3::Digest,
sha3::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::{
error,
io::{Read, Write},
Expand Down Expand Up @@ -282,7 +279,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-sdk/src/encryption/elgamal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ use {
crate::encryption::discrete_log::DiscreteLog,
sha3::Digest,
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::{
error,
io::{Read, Write},
Expand Down Expand Up @@ -838,7 +835,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
3 changes: 2 additions & 1 deletion zk-sdk/src/sigma_proofs/pubkey_validity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ mod test {
crate::{
encryption::pod::elgamal::PodElGamalPubkey, sigma_proofs::pod::PodPubkeyValidityProof,
},
solana_sdk::{pubkey::Pubkey, signature::Keypair},
solana_pubkey::Pubkey,
solana_signer::keypair::Keypair,
std::str::FromStr,
};

Expand Down

0 comments on commit 84fe667

Please sign in to comment.