@crisp-e3/sdk 0.5.7 → 0.5.8

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/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { LeanIMTMerkleProof, LeanIMT } from '@zk-kit/lean-imt';
2
- import { ProofData } from '@aztec/bb.js';
3
2
  import { Hex } from 'viem';
4
3
 
5
4
  /**
@@ -93,6 +92,11 @@ type Vote = {
93
92
  */
94
93
  no: bigint;
95
94
  };
95
+ type ProofData = {
96
+ publicInputs: string[];
97
+ proof: Uint8Array;
98
+ encryptedVote: Uint8Array;
99
+ };
96
100
  type MaskVoteProofInputs = {
97
101
  publicKey: Uint8Array;
98
102
  balance: bigint;
@@ -234,7 +238,7 @@ declare const verifyProof: (proof: ProofData) => Promise<boolean>;
234
238
  * @param proof The proof data.
235
239
  * @returns The encoded proof data as a hex string.
236
240
  */
237
- declare const encodeSolidityProof: (proof: ProofData) => Hex;
241
+ declare const encodeSolidityProof: ({ publicInputs, proof, encryptedVote }: ProofData) => Hex;
238
242
 
239
243
  /**
240
244
  * A class representing the CRISP SDK.