Skip to content

Commit e889854

Browse files
authored
deps: Bump sdk in interface and its dependents (#641)
* deps: Bump sdk in interface and its dependents #### Problem The sdk v3 crates are all out, and most of the SPL interface crates have been updated to use it too, but token-2022 is still on sdk v2. #### Summary of changes Bump the interface, proof-extraction, and proof-generation to the newest SDK crates, and have elgamal-registry / program / rust client all use the crate versions from crates.io. At the same time, update the interface to use the spl-token-interface, and update the error type to use the new traits. * Update proof-tests too * Update ciphertext-arithmetic too, use new zk-sdk functions * Update token-group, detach proof generation
1 parent a5ab0f2 commit e889854

File tree

18 files changed

+1301
-851
lines changed

18 files changed

+1301
-851
lines changed

Cargo.lock

Lines changed: 1173 additions & 712 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spl-associated-token-account-client = { version = "2.0.0" }
3535
spl-token = { version = "8.0", features = ["no-entrypoint"] }
3636
spl-token-2022 = { version = "9.0.0", path = "../../program", features = ["no-entrypoint"] }
3737
spl-token-client = { version = "0.16.1", path = "../rust-legacy" }
38-
spl-token-confidential-transfer-proof-generation = { version = "0.4.1", path = "../../confidential-transfer/proof-generation" }
38+
spl-token-confidential-transfer-proof-generation = { version = "0.4.1" }
3939
spl-token-metadata-interface = { version = "0.7.0" }
4040
spl-token-group-interface = { version = "0.6.0" }
4141
spl-memo = { version = "6.0", features = ["no-entrypoint"] }

clients/rust-legacy/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ spl-elgamal-registry = { version = "0.3.0",features = ["no-entrypoint"], path =
3232
spl-memo = { version = "6.0", features = ["no-entrypoint"] }
3333
spl-record = { version = "0.3.0", features = ["no-entrypoint"] }
3434
spl-token = { version = "8.0", features = ["no-entrypoint"] }
35-
spl-token-confidential-transfer-proof-extraction = { version = "0.4.1", path = "../../confidential-transfer/proof-extraction" }
36-
spl-token-confidential-transfer-proof-generation = { version = "0.4.1", path = "../../confidential-transfer/proof-generation" }
35+
spl-token-confidential-transfer-proof-extraction = { version = "0.4.1" }
36+
spl-token-confidential-transfer-proof-generation = { version = "0.4.1" }
3737
spl-token-2022 = { version = "9.0.0", features = ["no-entrypoint"], path = "../../program" }
3838
spl-token-group-interface = { version = "0.6.0" }
3939
spl-token-metadata-interface = { version = "0.7.0" }

confidential-transfer/ciphertext-arithmetic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ edition = { workspace = true }
1212
base64 = "0.22.1"
1313
bytemuck = "1.23.1"
1414
solana-curve25519 = "2.3.4"
15-
solana-zk-sdk = "2.3.4"
15+
solana-zk-sdk = "4.0.0"
1616

1717
[dev-dependencies]
1818
spl-token-confidential-transfer-proof-generation = { version = "0.4.1", path = "../proof-generation" }

confidential-transfer/elgamal-registry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ solana-system-interface = { version = "1.0.0", features = ["bincode"] }
2828
solana-sysvar = { version = "2.3.0", features = ["bincode"] }
2929
solana-zk-sdk = "2.3.4"
3030
spl-pod = "0.5.1"
31-
spl-token-confidential-transfer-proof-extraction = { version = "0.4.1", path = "../proof-extraction" }
31+
spl-token-confidential-transfer-proof-extraction = { version = "0.4.1" }
3232

3333
[lib]
3434
crate-type = ["cdylib", "lib"]

confidential-transfer/proof-extraction/Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ edition = { workspace = true }
1010

1111
[dependencies]
1212
bytemuck = "1.23.1"
13-
solana-account-info = "2.3.0"
13+
solana-account-info = "3.0.0"
1414
solana-curve25519 = "2.3.4"
15-
solana-instruction = "2.2.1"
16-
solana-instructions-sysvar = "2.2.1"
17-
solana-msg = "2.2.1"
18-
solana-program-error = "2.2.1"
19-
solana-pubkey = "2.2.1"
20-
solana-sdk-ids = "2.2.1"
21-
solana-zk-sdk = "2.3.4"
22-
spl-pod = "0.5.1"
15+
solana-instruction = "3.0.0"
16+
solana-instructions-sysvar = "3.0.0"
17+
solana-msg = "3.0.0"
18+
solana-program-error = "3.0.0"
19+
solana-pubkey = "3.0.0"
20+
solana-sdk-ids = "3.0.0"
21+
solana-zk-sdk = "4.0.0"
22+
spl-pod = "0.7.0"
2323
thiserror = "2.0.12"

confidential-transfer/proof-generation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ edition = { workspace = true }
1010

1111
[dependencies]
1212
curve25519-dalek = "4.1.3"
13-
solana-zk-sdk = "2.3.4"
13+
solana-zk-sdk = "4.0.0"
1414
thiserror = "2.0.12"
1515

1616
[lints]

confidential-transfer/proof-generation/src/burn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn burn_split_proof_data(
9494
#[cfg(not(target_arch = "wasm32"))]
9595
let grouped_ciphertext_lo = burn_amount_ciphertext_lo.0;
9696
#[cfg(target_arch = "wasm32")]
97-
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encryption_with_u64(
97+
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
9898
source_elgamal_keypair.pubkey(),
9999
supply_elgamal_pubkey,
100100
auditor_elgamal_pubkey,
@@ -111,7 +111,7 @@ pub fn burn_split_proof_data(
111111
#[cfg(not(target_arch = "wasm32"))]
112112
let grouped_ciphertext_hi = burn_amount_ciphertext_hi.0;
113113
#[cfg(target_arch = "wasm32")]
114-
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encryption_with_u64(
114+
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
115115
source_elgamal_keypair.pubkey(),
116116
supply_elgamal_pubkey,
117117
auditor_elgamal_pubkey,

confidential-transfer/proof-generation/src/mint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn mint_split_proof_data(
9393
#[cfg(not(target_arch = "wasm32"))]
9494
let grouped_ciphertext_lo = mint_amount_grouped_ciphertext_lo.0;
9595
#[cfg(target_arch = "wasm32")]
96-
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encryption_with_u64(
96+
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
9797
destination_elgamal_pubkey,
9898
supply_elgamal_keypair.pubkey(),
9999
auditor_elgamal_pubkey,
@@ -110,7 +110,7 @@ pub fn mint_split_proof_data(
110110
#[cfg(not(target_arch = "wasm32"))]
111111
let grouped_ciphertext_hi = mint_amount_grouped_ciphertext_hi.0;
112112
#[cfg(target_arch = "wasm32")]
113-
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encryption_with_u64(
113+
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
114114
destination_elgamal_pubkey,
115115
supply_elgamal_keypair.pubkey(),
116116
auditor_elgamal_pubkey,

confidential-transfer/proof-generation/src/transfer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub fn transfer_split_proof_data(
101101
#[cfg(not(target_arch = "wasm32"))]
102102
let grouped_ciphertext_lo = transfer_amount_grouped_ciphertext_lo.0;
103103
#[cfg(target_arch = "wasm32")]
104-
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encryption_with_u64(
104+
let grouped_ciphertext_lo = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
105105
source_elgamal_keypair.pubkey(),
106106
destination_elgamal_pubkey,
107107
auditor_elgamal_pubkey,
@@ -119,7 +119,7 @@ pub fn transfer_split_proof_data(
119119
#[cfg(not(target_arch = "wasm32"))]
120120
let grouped_ciphertext_hi = transfer_amount_grouped_ciphertext_hi.0;
121121
#[cfg(target_arch = "wasm32")]
122-
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encryption_with_u64(
122+
let grouped_ciphertext_hi = GroupedElGamalCiphertext3Handles::encrypt_with_u64(
123123
source_elgamal_keypair.pubkey(),
124124
destination_elgamal_pubkey,
125125
auditor_elgamal_pubkey,

0 commit comments

Comments
 (0)