Skip to content

Commit

Permalink
revert typo
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Sep 12, 2024
1 parent 803fb09 commit 76977c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src.ts/verkleFFIBindings/verkleFFI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ export interface ProverInput {
indices: number[]
}

function serializedProverInputs(proofInputs: ProverInput[]): Uint8Array {
const serializedProverInputs = proofInputs.flatMap(({ serializedCommitment, vector, indices }) =>
indices.flatMap((index) => [
serializedCommitment,
...vector,
new Uint8Array([index]),
vector[index],
]),
)

return concatBytes(...serializedProverInputs)
}

export interface VerifierInput {
// A commitment to the vector that we want to verify
// proofs over.
Expand Down

0 comments on commit 76977c2

Please sign in to comment.