@zama-fhe/relayer-sdk 0.4.0-alpha.1 → 0.4.0-alpha.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/lib/web.d.ts CHANGED
@@ -11,10 +11,13 @@ import type { FhevmInstanceOptions } from './types/relayer';
11
11
  import { InitInput as KMSInput } from 'tkms';
12
12
  import type { PublicDecryptResults } from './types/relayer';
13
13
  import type { RelayerV2InputProofOptions } from '../relayer-provider/v2/types/types';
14
+ import type { RelayerV2InputProofOptions as RelayerV2InputProofOptions_2 } from './relayer-provider/v2/types/types';
14
15
  import type { RelayerV2PublicDecryptOptions } from './relayer-provider/v2/types/types';
15
16
  import type { RelayerV2UserDecryptOptions } from './relayer-provider/v2/types/types';
16
17
  import { InitInput as TFHEInput } from 'tfhe';
17
18
  import type { UserDecryptResults } from './types/relayer';
19
+ import type { ZKProof } from '../types/primitives';
20
+ import type { ZKProof as ZKProof_2 } from './types/primitives';
18
21
 
19
22
  export { ApiKeyCookie }
20
23
 
@@ -68,6 +71,10 @@ export { EncryptionBits }
68
71
 
69
72
  export declare type FhevmInstance = {
70
73
  createEncryptedInput: (contractAddress: string, userAddress: string) => RelayerEncryptedInput;
74
+ requestZKProofVerification: (zkProof: ZKProof_2, options?: RelayerV2InputProofOptions_2) => Promise<{
75
+ handles: Uint8Array[];
76
+ inputProof: Uint8Array;
77
+ }>;
71
78
  generateKeypair: () => {
72
79
  publicKey: string;
73
80
  privateKey: string;
@@ -132,7 +139,7 @@ export declare type RelayerEncryptedInput = {
132
139
  add256: (value: number | bigint) => RelayerEncryptedInput;
133
140
  addAddress: (value: string) => RelayerEncryptedInput;
134
141
  getBits: () => EncryptionBits_2[];
135
- getCiphertextWithInputVerification(): Uint8Array;
142
+ generateZKProof(): ZKProof;
136
143
  encrypt: (options?: RelayerV2InputProofOptions) => Promise<{
137
144
  handles: Uint8Array[];
138
145
  inputProof: Uint8Array;