@@ -4,7 +4,7 @@ import { beforeAll, describe, expect, test } from 'vitest'
4
4
import { VerkleCrypto , loadVerkleCrypto } from '../index.js'
5
5
import { verifyExecutionWitnessPreState , Context as VerkleFFI } from '../wasm/rust_verkle_wasm.js'
6
6
import kaustinenBlock72 from './data/kaustinen6Block72.json'
7
- // import kaustinenBlock73 from './data/kaustinen6Block73.json'
7
+ import kaustinenBlock73 from './data/kaustinen6Block73.json'
8
8
9
9
describe ( 'bindings' , ( ) => {
10
10
let ffi : VerkleFFI
@@ -192,16 +192,15 @@ describe('bindings', () => {
192
192
expect ( verified ) . toBe ( true )
193
193
} )
194
194
195
- // TODO: Investigate why this fails
196
195
// 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
+ } )
205
204
206
205
test ( 'smoke test errors are thrown' , ( ) => {
207
206
const scalar = new Uint8Array ( [ 0 ] )
0 commit comments