@provablehq/wasm 0.8.6 → 0.8.7
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/mainnet/aleo_wasm.d.ts +4 -4
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.js +13 -13
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +13 -13
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.d.ts +4 -4
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.js +13 -13
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +13 -13
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -1
|
@@ -183,8 +183,8 @@ export class Ciphertext {
|
|
|
183
183
|
/**
|
|
184
184
|
* Decrypt the ciphertext using the given view key.
|
|
185
185
|
*
|
|
186
|
-
* @param {ViewKey} The view key of the account that encrypted the ciphertext.
|
|
187
|
-
* @param {Group} The nonce used to encrypt the ciphertext.
|
|
186
|
+
* @param {ViewKey} viewKey The view key of the account that encrypted the ciphertext.
|
|
187
|
+
* @param {Group} nonce The nonce used to encrypt the ciphertext.
|
|
188
188
|
*
|
|
189
189
|
* @returns {Plaintext} The decrypted plaintext.
|
|
190
190
|
*/
|
|
@@ -193,11 +193,11 @@ export class Ciphertext {
|
|
|
193
193
|
* Decrypt a ciphertext using the view key of the transition signer, transition public key, and
|
|
194
194
|
* (program, function, index) tuple.
|
|
195
195
|
*/
|
|
196
|
-
|
|
196
|
+
decryptWithTransitionInfo(view_key: ViewKey, transition_public_key: Group, program: string, function_name: string, index: number): Plaintext;
|
|
197
197
|
/**
|
|
198
198
|
* Decrypt a ciphertext using the transition view key and a (program, function, index) tuple.
|
|
199
199
|
*/
|
|
200
|
-
|
|
200
|
+
decryptWithTransitionViewKey(transition_view_key: Field, program: string, function_name: string, index: number): Plaintext;
|
|
201
201
|
/**
|
|
202
202
|
* Decrypts a ciphertext into plaintext using the given ciphertext view key.
|
|
203
203
|
*
|
|
Binary file
|
package/dist/mainnet/index.js
CHANGED
|
@@ -1001,8 +1001,8 @@ class Ciphertext {
|
|
|
1001
1001
|
/**
|
|
1002
1002
|
* Decrypt the ciphertext using the given view key.
|
|
1003
1003
|
*
|
|
1004
|
-
* @param {ViewKey} The view key of the account that encrypted the ciphertext.
|
|
1005
|
-
* @param {Group} The nonce used to encrypt the ciphertext.
|
|
1004
|
+
* @param {ViewKey} viewKey The view key of the account that encrypted the ciphertext.
|
|
1005
|
+
* @param {Group} nonce The nonce used to encrypt the ciphertext.
|
|
1006
1006
|
*
|
|
1007
1007
|
* @returns {Plaintext} The decrypted plaintext.
|
|
1008
1008
|
* @param {ViewKey} view_key
|
|
@@ -1038,7 +1038,7 @@ class Ciphertext {
|
|
|
1038
1038
|
* @param {number} index
|
|
1039
1039
|
* @returns {Plaintext}
|
|
1040
1040
|
*/
|
|
1041
|
-
|
|
1041
|
+
decryptWithTransitionInfo(view_key, transition_public_key, program, function_name, index) {
|
|
1042
1042
|
try {
|
|
1043
1043
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1044
1044
|
_assertClass(view_key, ViewKey);
|
|
@@ -1049,7 +1049,7 @@ class Ciphertext {
|
|
|
1049
1049
|
const len2 = WASM_VECTOR_LEN;
|
|
1050
1050
|
const ptr3 = passStringToWasm0(function_name, wasm.__wbindgen_export_3, wasm.__wbindgen_export_4);
|
|
1051
1051
|
const len3 = WASM_VECTOR_LEN;
|
|
1052
|
-
wasm.
|
|
1052
|
+
wasm.ciphertext_decryptWithTransitionInfo(retptr, this.__wbg_ptr, ptr0, ptr1, ptr2, len2, ptr3, len3, index);
|
|
1053
1053
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1054
1054
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1055
1055
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1069,7 +1069,7 @@ class Ciphertext {
|
|
|
1069
1069
|
* @param {number} index
|
|
1070
1070
|
* @returns {Plaintext}
|
|
1071
1071
|
*/
|
|
1072
|
-
|
|
1072
|
+
decryptWithTransitionViewKey(transition_view_key, program, function_name, index) {
|
|
1073
1073
|
try {
|
|
1074
1074
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1075
1075
|
_assertClass(transition_view_key, Field);
|
|
@@ -1078,7 +1078,7 @@ class Ciphertext {
|
|
|
1078
1078
|
const len1 = WASM_VECTOR_LEN;
|
|
1079
1079
|
const ptr2 = passStringToWasm0(function_name, wasm.__wbindgen_export_3, wasm.__wbindgen_export_4);
|
|
1080
1080
|
const len2 = WASM_VECTOR_LEN;
|
|
1081
|
-
wasm.
|
|
1081
|
+
wasm.ciphertext_decryptWithTransitionViewKey(retptr, this.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, index);
|
|
1082
1082
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1083
1083
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1084
1084
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -7453,7 +7453,7 @@ function __wbg_get_imports() {
|
|
|
7453
7453
|
const ret = getObject(arg0).length;
|
|
7454
7454
|
return ret;
|
|
7455
7455
|
};
|
|
7456
|
-
imports.wbg.
|
|
7456
|
+
imports.wbg.__wbg_log_0e4cc02ccd760d45 = function(arg0, arg1) {
|
|
7457
7457
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
7458
7458
|
};
|
|
7459
7459
|
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
@@ -7650,7 +7650,7 @@ function __wbg_get_imports() {
|
|
|
7650
7650
|
const ret = Signature.__wrap(arg0);
|
|
7651
7651
|
return addHeapObject(ret);
|
|
7652
7652
|
};
|
|
7653
|
-
imports.wbg.
|
|
7653
|
+
imports.wbg.__wbg_spawnWorker_d283a0e4c0e316c8 = function(arg0, arg1, arg2, arg3) {
|
|
7654
7654
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
7655
7655
|
return addHeapObject(ret);
|
|
7656
7656
|
};
|
|
@@ -7770,12 +7770,12 @@ function __wbg_get_imports() {
|
|
|
7770
7770
|
const ret = false;
|
|
7771
7771
|
return ret;
|
|
7772
7772
|
};
|
|
7773
|
-
imports.wbg.
|
|
7774
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
7773
|
+
imports.wbg.__wbindgen_closure_wrapper6073 = function(arg0, arg1, arg2) {
|
|
7774
|
+
const ret = makeMutClosure(arg0, arg1, 525, __wbg_adapter_40);
|
|
7775
7775
|
return addHeapObject(ret);
|
|
7776
7776
|
};
|
|
7777
|
-
imports.wbg.
|
|
7778
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
7777
|
+
imports.wbg.__wbindgen_closure_wrapper6079 = function(arg0, arg1, arg2) {
|
|
7778
|
+
const ret = makeMutClosure(arg0, arg1, 525, __wbg_adapter_40);
|
|
7779
7779
|
return addHeapObject(ret);
|
|
7780
7780
|
};
|
|
7781
7781
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
@@ -7851,7 +7851,7 @@ function __wbg_get_imports() {
|
|
|
7851
7851
|
}
|
|
7852
7852
|
|
|
7853
7853
|
function __wbg_init_memory(imports, memory) {
|
|
7854
|
-
imports.wbg.memory = memory || new WebAssembly.Memory({initial:
|
|
7854
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({initial:22,maximum:65536,shared:true});
|
|
7855
7855
|
}
|
|
7856
7856
|
|
|
7857
7857
|
function __wbg_finalize_init(instance, module, thread_stack_size) {
|