Skip to content

Commit 76977c2

Browse files
committed
revert typo
1 parent 803fb09 commit 76977c2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src.ts/verkleFFIBindings/verkleFFI.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ export interface ProverInput {
139139
indices: number[]
140140
}
141141

142+
function serializedProverInputs(proofInputs: ProverInput[]): Uint8Array {
143+
const serializedProverInputs = proofInputs.flatMap(({ serializedCommitment, vector, indices }) =>
144+
indices.flatMap((index) => [
145+
serializedCommitment,
146+
...vector,
147+
new Uint8Array([index]),
148+
vector[index],
149+
]),
150+
)
151+
152+
return concatBytes(...serializedProverInputs)
153+
}
154+
142155
export interface VerifierInput {
143156
// A commitment to the vector that we want to verify
144157
// proofs over.

0 commit comments

Comments
 (0)