Skip to content

Commit f5250a8

Browse files
authored
fix: rust verkle update
* update verkle to point to commit with block fix * uncomment code and test
1 parent 05b7fb4 commit f5250a8

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

Cargo.lock

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

src.rs/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ default = ["console_error_panic_hook"]
1515
serde = { version = "1.0", features = ["derive"] }
1616
serde-wasm-bindgen = "0.3.0"
1717
wasm-bindgen = { version = "0.2.90", features = ["serde-serialize"] }
18-
ipa-multipoint = { git = "https://github.com/crate-crypto/rust-verkle", rev = "594a70e3df16db9d870b7d3c82479d041cfd1b2d" }
19-
banderwagon = { git = "https://github.com/crate-crypto/rust-verkle", rev = "594a70e3df16db9d870b7d3c82479d041cfd1b2d" }
20-
ffi_interface = { git = "https://github.com/crate-crypto/rust-verkle", rev = "594a70e3df16db9d870b7d3c82479d041cfd1b2d" }
18+
ipa-multipoint = { git = "https://github.com/crate-crypto/rust-verkle", rev = "1c2cd88661e0bf54df29239333baba4bd115c3d3" }
19+
banderwagon = { git = "https://github.com/crate-crypto/rust-verkle", rev = "1c2cd88661e0bf54df29239333baba4bd115c3d3" }
20+
ffi_interface = { git = "https://github.com/crate-crypto/rust-verkle", rev = "1c2cd88661e0bf54df29239333baba4bd115c3d3" }
2121

2222
hex = "0.4.3"
2323
# This is needed so that we can enable the js feature, which is being used in ark-serialize

src.ts/tests/ffi.spec.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { beforeAll, describe, expect, test } from 'vitest'
44
import { VerkleCrypto, loadVerkleCrypto } from '../index.js'
55
import { verifyExecutionWitnessPreState, Context as VerkleFFI } from '../wasm/rust_verkle_wasm.js'
66
import kaustinenBlock72 from './data/kaustinen6Block72.json'
7-
// import kaustinenBlock73 from './data/kaustinen6Block73.json'
7+
import kaustinenBlock73 from './data/kaustinen6Block73.json'
88

99
describe('bindings', () => {
1010
let ffi: VerkleFFI
@@ -192,16 +192,15 @@ describe('bindings', () => {
192192
expect(verified).toBe(true)
193193
})
194194

195-
// TODO: Investigate why this fails
196195
// This one is for a much larger block (~100 txs) and currently fails
197-
// test('verifyExecutionProof: block with many txs', () => {
198-
// // Src: Kaustinen6 testnet, block 72 state root (parent of block 73)
199-
// const prestateRoot = '0x18d1dfcc6ccc6f34d14af48a865895bf34bde7f3571d9ba24a4b98122841048c'
200-
// const executionWitness = JSON.stringify(kaustinenBlock73.executionWitness)
201-
202-
// const verified = verifyExecutionWitnessPreState(prestateRoot, executionWitness)
203-
// expect(verified).toBe(true)
204-
// })
196+
test('verifyExecutionProof: block with many txs', () => {
197+
// Src: Kaustinen6 testnet, block 72 state root (parent of block 73)
198+
const prestateRoot = '0x18d1dfcc6ccc6f34d14af48a865895bf34bde7f3571d9ba24a4b98122841048c'
199+
const executionWitness = JSON.stringify(kaustinenBlock73.executionWitness)
200+
201+
const verified = verifyExecutionWitnessPreState(prestateRoot, executionWitness)
202+
expect(verified).toBe(true)
203+
})
205204

206205
test('smoke test errors are thrown', () => {
207206
const scalar = new Uint8Array([0])

0 commit comments

Comments
 (0)