We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 803fb09 commit 76977c2Copy full SHA for 76977c2
src.ts/verkleFFIBindings/verkleFFI.ts
@@ -139,6 +139,19 @@ export interface ProverInput {
139
indices: number[]
140
}
141
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
155
export interface VerifierInput {
156
// A commitment to the vector that we want to verify
157
// proofs over.
0 commit comments