hyli-noir 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/check_jwt.d.ts +13 -10
- package/dist/hyli-noir.cjs.js +1 -1
- package/dist/hyli-noir.cjs.js.map +1 -1
- package/dist/hyli-noir.es.js +88 -88
- package/dist/hyli-noir.es.js.map +1 -1
- package/package.json +2 -2
package/dist/check_jwt.d.ts
CHANGED
|
@@ -18,16 +18,7 @@ export declare const contract_name = "check_jwt";
|
|
|
18
18
|
* @returns {Promise<{ contract_name: string; program_id: number[]; verifier: string; proof: number[] }>}
|
|
19
19
|
* An object containing verifier details and the generated proof.
|
|
20
20
|
*/
|
|
21
|
-
export declare const build_proof_transaction: (
|
|
22
|
-
identity: string;
|
|
23
|
-
stored_hash: number[];
|
|
24
|
-
tx: string;
|
|
25
|
-
blob_index: number;
|
|
26
|
-
tx_blob_count: number;
|
|
27
|
-
idToken: string;
|
|
28
|
-
jwtPubkey: JsonWebKey;
|
|
29
|
-
circuit: CompiledCircuit;
|
|
30
|
-
}) => Promise<{
|
|
21
|
+
export declare const build_proof_transaction: (identity: string, stored_hash: number[], tx: string, blob_index: number, tx_blob_count: number, idToken: string, jwtPubkey: JsonWebKey, circuit?: CompiledCircuit) => Promise<{
|
|
31
22
|
contract_name: string;
|
|
32
23
|
program_id: number[];
|
|
33
24
|
verifier: string;
|
|
@@ -61,6 +52,18 @@ export declare const extract_jwt_claims: (jwt: string) => {
|
|
|
61
52
|
* @returns {Blob} A structured Blob object containing the JWT data.
|
|
62
53
|
*/
|
|
63
54
|
export declare const build_blob: (mail_hash: Uint8Array, nonce: string, pubkey: string) => Blob;
|
|
55
|
+
/**
|
|
56
|
+
* Builds a blob to register the check_jwt contract.
|
|
57
|
+
*
|
|
58
|
+
* @param {CompiledCircuit} circuit - The compiled circuit to execute (defaults to check-jwt).
|
|
59
|
+
* @param {Uint8Array} circuit - The hashed email value.
|
|
60
|
+
*/
|
|
61
|
+
export declare const build_register_contract: (circuit?: CompiledCircuit) => Promise<{
|
|
62
|
+
verifier: string;
|
|
63
|
+
program_id: number[];
|
|
64
|
+
state_commitment: number[];
|
|
65
|
+
contract_name: string;
|
|
66
|
+
}>;
|
|
64
67
|
/**
|
|
65
68
|
* Computes the Poseidon2 hash of a string.
|
|
66
69
|
*
|