@zama-fhe/relayer-sdk 0.1.0 → 0.1.1-0
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/README.md +6 -1
- package/bundle/relayer-sdk-js.js +10811 -10645
- package/bundle/relayer-sdk-js.umd.cjs +14 -14
- package/lib/node.cjs +399 -214
- package/lib/node.d.ts +19 -5
- package/lib/node.js +397 -214
- package/lib/web.d.ts +20 -6
- package/lib/web.js +397 -214
- package/package.json +1 -5
package/lib/web.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare type FhevmInstance = {
|
|
|
74
74
|
} | null;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
declare type FhevmInstanceConfig = {
|
|
77
|
+
export declare type FhevmInstanceConfig = {
|
|
78
78
|
verifyingContractAddressDecryption: string;
|
|
79
79
|
verifyingContractAddressInputVerification: string;
|
|
80
80
|
kmsContractAddress: string;
|
|
@@ -96,6 +96,10 @@ export declare const generateKeypair: () => {
|
|
|
96
96
|
privateKey: string;
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
+
export declare function getErrorCauseCode(e: unknown): string | undefined;
|
|
100
|
+
|
|
101
|
+
export declare function getErrorCauseStatus(e: unknown): number | undefined;
|
|
102
|
+
|
|
99
103
|
export declare type HandleContractPair = {
|
|
100
104
|
handle: Uint8Array | string;
|
|
101
105
|
contractAddress: string;
|
|
@@ -109,7 +113,7 @@ export declare const initSDK: ({ tfheParams, kmsParams, thread, }?: {
|
|
|
109
113
|
|
|
110
114
|
export { KMSInput }
|
|
111
115
|
|
|
112
|
-
export declare type PublicParams<T =
|
|
116
|
+
export declare type PublicParams<T = TFHEType['CompactPkeCrs']> = {
|
|
113
117
|
[key in EncryptionTypes]?: {
|
|
114
118
|
publicParams: T;
|
|
115
119
|
publicParamsId: string;
|
|
@@ -124,12 +128,11 @@ export declare type RelayerEncryptedInput = {
|
|
|
124
128
|
add64: (value: number | bigint) => RelayerEncryptedInput;
|
|
125
129
|
add128: (value: number | bigint) => RelayerEncryptedInput;
|
|
126
130
|
add256: (value: number | bigint) => RelayerEncryptedInput;
|
|
127
|
-
addBytes64: (value: Uint8Array) => RelayerEncryptedInput;
|
|
128
|
-
addBytes128: (value: Uint8Array) => RelayerEncryptedInput;
|
|
129
|
-
addBytes256: (value: Uint8Array) => RelayerEncryptedInput;
|
|
130
131
|
addAddress: (value: string) => RelayerEncryptedInput;
|
|
131
132
|
getBits: () => EncryptionTypes[];
|
|
132
|
-
encrypt: (
|
|
133
|
+
encrypt: (options?: {
|
|
134
|
+
apiKey?: string;
|
|
135
|
+
}) => Promise<{
|
|
133
136
|
handles: Uint8Array[];
|
|
134
137
|
inputProof: Uint8Array;
|
|
135
138
|
}>;
|
|
@@ -139,4 +142,15 @@ export declare const SepoliaConfig: FhevmInstanceConfig;
|
|
|
139
142
|
|
|
140
143
|
export { TFHEInput }
|
|
141
144
|
|
|
145
|
+
declare type TFHEType = {
|
|
146
|
+
default?: any;
|
|
147
|
+
TFHEInput?: any;
|
|
148
|
+
TfheCompactPublicKey: any;
|
|
149
|
+
CompactPkeCrs: any;
|
|
150
|
+
initThreadPool?: any;
|
|
151
|
+
init_panic_hook: any;
|
|
152
|
+
CompactCiphertextList: any;
|
|
153
|
+
ZkComputeLoad: any;
|
|
154
|
+
};
|
|
155
|
+
|
|
142
156
|
export { }
|