@zama-fhe/relayer-sdk 0.1.0 → 0.1.1

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/node.d.ts CHANGED
@@ -105,12 +105,16 @@ export declare const generateKeypair: () => {
105
105
  privateKey: string;
106
106
  };
107
107
 
108
+ export declare function getErrorCauseCode(e: unknown): string | undefined;
109
+
110
+ export declare function getErrorCauseStatus(e: unknown): number | undefined;
111
+
108
112
  export declare type HandleContractPair = {
109
113
  handle: Uint8Array | string;
110
114
  contractAddress: string;
111
115
  };
112
116
 
113
- export declare type PublicParams<T = TFHE['CompactPkeCrs']> = {
117
+ export declare type PublicParams<T = TFHEType['CompactPkeCrs']> = {
114
118
  [key in EncryptionTypes]?: {
115
119
  publicParams: T;
116
120
  publicParamsId: string;
@@ -125,12 +129,11 @@ export declare type RelayerEncryptedInput = {
125
129
  add64: (value: number | bigint) => RelayerEncryptedInput;
126
130
  add128: (value: number | bigint) => RelayerEncryptedInput;
127
131
  add256: (value: number | bigint) => RelayerEncryptedInput;
128
- addBytes64: (value: Uint8Array) => RelayerEncryptedInput;
129
- addBytes128: (value: Uint8Array) => RelayerEncryptedInput;
130
- addBytes256: (value: Uint8Array) => RelayerEncryptedInput;
131
132
  addAddress: (value: string) => RelayerEncryptedInput;
132
133
  getBits: () => EncryptionTypes[];
133
- encrypt: () => Promise<{
134
+ encrypt: (options?: {
135
+ apiKey?: string;
136
+ }) => Promise<{
134
137
  handles: Uint8Array[];
135
138
  inputProof: Uint8Array;
136
139
  }>;
@@ -138,4 +141,15 @@ export declare type RelayerEncryptedInput = {
138
141
 
139
142
  export declare const SepoliaConfig: FhevmInstanceConfig;
140
143
 
144
+ export declare type TFHEType = {
145
+ default?: any;
146
+ TFHEInput?: any;
147
+ TfheCompactPublicKey: any;
148
+ CompactPkeCrs: any;
149
+ initThreadPool?: any;
150
+ init_panic_hook: any;
151
+ CompactCiphertextList: any;
152
+ ZkComputeLoad: any;
153
+ };
154
+
141
155
  export { }