Skip to content

Commit

Permalink
Fix export typing
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Sep 10, 2024
1 parent 502d77c commit a7c3138
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src.rs/src/verkle_ffi_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl Context {
{
let input_bytes = serde_wasm_bindgen::from_value(input.into()).unwrap();
let result = ffi_interface::verify_proof(&self.inner, input_bytes).map(|_op |Boolean::from(true))
.map_err(|err| JsError::new(&format!("proof verification failed]: {:?}", err)));
.map_err(|err| JsError::new(&format!("proof verification failed: {:?}", err)));
return result
}
}
Expand Down
4 changes: 2 additions & 2 deletions src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
verifyExecutionWitnessPreState as verifyExecutionWitnessPreStateBase,
createProof as createProofBase,
verifyProof as verifyProofBase,
ProverInput as ProverInputBase,
VerifierInput as VerifierInputBase,
type ProverInput as ProverInputBase,
type VerifierInput as VerifierInputBase,
} from './verkleFFIBindings/index.js'
import { Context as VerkleFFI } from './wasm/rust_verkle_wasm.js'

Expand Down
4 changes: 2 additions & 2 deletions src.ts/tests/ffi.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { bytesToHex, randomBytes } from '@ethereumjs/util'
import { beforeAll, describe, expect, test, assert } from 'vitest'

import { ProverInput, VerifierInput, VerkleCrypto, loadVerkleCrypto } from '../index.js'
import { ProverInput, VerifierInput, loadVerkleCrypto } from '../index.js'
import { verifyExecutionWitnessPreState, Context as VerkleFFI } from '../wasm/rust_verkle_wasm.js'

import kaustinenBlock72 from './data/kaustinen6Block72.json'
import kaustinenBlock73 from './data/kaustinen6Block73.json'

describe('bindings', () => {
let ffi: VerkleFFI
let verkleCrypto: VerkleCrypto
let verkleCrypto: Awaited<ReturnType<typeof loadVerkleCrypto>>
beforeAll(async () => {
verkleCrypto = await loadVerkleCrypto()
ffi = new VerkleFFI()
Expand Down
8 changes: 4 additions & 4 deletions src.ts/verkleFFIBindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
updateCommitment,
createProof,
verifyProof,
ProverInput,
VerifierInput,
type ProverInput,
type VerifierInput,
} from './verkleFFI.js'

export {
Expand All @@ -23,6 +23,6 @@ export {
verifyExecutionWitnessPreState,
createProof,
verifyProof,
ProverInput,
VerifierInput,
type ProverInput,
type VerifierInput,
}

0 comments on commit a7c3138

Please sign in to comment.