Skip to content

Commit 6eced5a

Browse files
committed
fix(zk-id): disable light-client v2 feature so V1-state-tree accounts use the V1 proof endpoint
1 parent e200e80 commit 6eced5a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

zk/zk-id/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ tokio = "1.49.0"
4242
light-hasher = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2", features = ["sha256", "keccak", "poseidon"] }
4343
light-sdk-types = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2" }
4444
light-merkle-tree-reference = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2" }
45-
light-client = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2" }
45+
# Disable the `v2` feature so the client uses the V1 proof endpoint
46+
# (get_validity_proof). zk-id stores accounts in a V1 state tree, which the V2
47+
# proof endpoint (get_validity_proof_v2) cannot prove; the V1 endpoint still
48+
# forwards V2 address trees via `new_addresses_with_trees`, so addresses stay
49+
# on the V2 address tree.
50+
light-client = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2", default-features = false }
4651
light-sdk = { git = "https://github.com/Lightprotocol/light-sdks", rev = "12ab48bde9260b80c7d8b6d38b066be357c1acc2", features = ["anchor", "poseidon"] }
4752
groth16-solana = { git = "https://github.com/Lightprotocol/groth16-solana", features = ["vk", "circom"], rev = "66c0dc87d0808c4d2aadb53c61435b6edb8ddfd9" }
4853

0 commit comments

Comments
 (0)