node-tkms 0.9.0-rc27 → 0.9.0-rc29
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/kms_lib.js +22 -22
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/kms_lib.js
CHANGED
|
@@ -156,24 +156,17 @@ function debugString(val) {
|
|
|
156
156
|
return className;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
160
|
-
ptr = ptr >>> 0;
|
|
161
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
165
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
166
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
167
|
-
WASM_VECTOR_LEN = arg.length;
|
|
168
|
-
return ptr;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
159
|
function _assertClass(instance, klass) {
|
|
172
160
|
if (!(instance instanceof klass)) {
|
|
173
161
|
throw new Error(`expected instance of ${klass.name}`);
|
|
174
162
|
}
|
|
175
163
|
return instance.ptr;
|
|
176
164
|
}
|
|
165
|
+
|
|
166
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
167
|
+
ptr = ptr >>> 0;
|
|
168
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
169
|
+
}
|
|
177
170
|
/**
|
|
178
171
|
* @param {PublicSigKey} pk
|
|
179
172
|
* @returns {Uint8Array}
|
|
@@ -186,6 +179,13 @@ module.exports.public_sig_key_to_u8vec = function(pk) {
|
|
|
186
179
|
return v1;
|
|
187
180
|
};
|
|
188
181
|
|
|
182
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
183
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
184
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
185
|
+
WASM_VECTOR_LEN = arg.length;
|
|
186
|
+
return ptr;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
189
|
function takeFromExternrefTable0(idx) {
|
|
190
190
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
191
191
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -1522,16 +1522,6 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
1522
1522
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1523
1523
|
};
|
|
1524
1524
|
|
|
1525
|
-
module.exports.__wbindgen_is_null = function(arg0) {
|
|
1526
|
-
const ret = arg0 === null;
|
|
1527
|
-
return ret;
|
|
1528
|
-
};
|
|
1529
|
-
|
|
1530
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
1531
|
-
const ret = arg0 === undefined;
|
|
1532
|
-
return ret;
|
|
1533
|
-
};
|
|
1534
|
-
|
|
1535
1525
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1536
1526
|
const obj = arg1;
|
|
1537
1527
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -1547,11 +1537,21 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
1547
1537
|
return ret;
|
|
1548
1538
|
};
|
|
1549
1539
|
|
|
1540
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
1541
|
+
const ret = arg0 === undefined;
|
|
1542
|
+
return ret;
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1550
1545
|
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
1551
1546
|
const ret = arg0 in arg1;
|
|
1552
1547
|
return ret;
|
|
1553
1548
|
};
|
|
1554
1549
|
|
|
1550
|
+
module.exports.__wbindgen_is_null = function(arg0) {
|
|
1551
|
+
const ret = arg0 === null;
|
|
1552
|
+
return ret;
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
1555
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1556
1556
|
const ret = arg0 == arg1;
|
|
1557
1557
|
return ret;
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|