You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -124,15 +125,15 @@ function createProgramState() {
124
125
}
125
126
126
127
/**
127
-
* Initializes {@linkPickles} bindings, serializes the input proof and VK for use in Ocaml, then calls into {@link Pickles.verify} to verify the proof.
128
+
* Initializes Pickles bindings, serializes the input proof and verification key for use in OCaml, then calls into the Picklesverify function and returns the result.
128
129
*
129
-
* @param proof Either a Proof instance or a JSON proof which gets converted into an {@link MlPair} of {@link FieldConst} arrays for use in the bindings.
130
-
* @param verificationKey Either a string containing a base64 serialized verification key or a VerificationKeywhich gets converted into a string for use in the bindings.
130
+
* @param proof Either a `Proof` instance or a serialized JSON proof
131
+
* @param verificationKey Either a base64 serialized verification key or a `VerificationKey` instance which will be base64 serialized for use in the bindings.
131
132
* @returns A promise that resolves to a boolean indicating whether the proof is valid.
Copy file name to clipboardExpand all lines: src/snarky.d.ts
+20-5Lines changed: 20 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,21 @@ export {
49
49
MlFeatureFlags,
50
50
areBindingsInitialized,
51
51
Base64ProofString,
52
+
Base64VerificationKeyString,
52
53
};
53
54
54
55
declareletareBindingsInitialized: boolean;
55
56
56
57
/**
57
-
* A string representation of a {@linkPickles.Proof} in base64 encoding, used for communication between Ocaml and TypeScript and for JSON serialization.
58
+
* A string representation of a Pickles proof in base64 encoding, used for communication between OCaml and TypeScript and for JSON serialization.
58
59
*/
59
60
typeBase64ProofString=string;
60
61
62
+
/**
63
+
* A string representation of a constraint system's verification key in base64 encoding, used for communication between OCaml and TypeScript and for JSON serialization.
0 commit comments