Skip to content

Commit 7228463

Browse files
committed
[FIX] return boundary & fix test run
1 parent 232fbe4 commit 7228463

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"run:tsc": "node --experimental-strip-types",
26-
"test": "node --experimental-strip-types --import=./src/tests/setup.ts --test --test-force-exit",
26+
"test": "node --experimental-strip-types --import=./src/tests/setup.ts --test --test-force-exit src/tests/*.test.ts",
2727
"bench": "NODE_ENV=test npm run run:tsc -- ./src/tests/benchmark",
2828
"build": "npm exec tsc -- -p tsconfig.build.json",
2929
"prepare": "npm run build",

js/src/gnark/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ export function generateGnarkWitness(
159159
: undefined,
160160
blocks: input.noncesAndCounters.map(n => ({
161161
nonce: Base64.fromUint8Array(n.nonce),
162-
counter: n.counter
162+
counter: n.counter,
163+
boundary: n.boundary || null
163164
})),
164165
input: Base64.fromUint8Array(input.in),
165166
toprf: generateTOPRFParams()

js/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export type ZKTOPRFPublicSignals = {
160160
export type BlockInfo = {
161161
nonce: ZKInputItem
162162
counter: number
163+
boundary: number | undefined
163164
}
164165

165166
export type ZKProofPublicSignals = {

0 commit comments

Comments
 (0)