@dfns/dfns-key-export-bundler
Advanced tools
Comparing version 0.2.1 to 0.2.3
@@ -27,4 +27,8 @@ let wasm; | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
let cachedUint8Memory0 = null; | ||
@@ -39,2 +43,18 @@ | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder; | ||
@@ -108,22 +128,2 @@ | ||
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder; | ||
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
cachedTextDecoder.decode(); | ||
function getStringFromWasm0(ptr, len) { | ||
ptr = ptr >>> 0; | ||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len)); | ||
} | ||
function addHeapObject(obj) { | ||
if (heap_next === heap.length) heap.push(heap.length + 1); | ||
const idx = heap_next; | ||
heap_next = heap[idx]; | ||
heap[idx] = obj; | ||
return idx; | ||
} | ||
let cachedFloat64Memory0 = null; | ||
@@ -234,4 +234,8 @@ | ||
*/ | ||
Frost:3,"3":"Frost", }); | ||
Frost:3,"3":"Frost", | ||
/** | ||
* FROST variant that is compatible with Bitcoin Schnorr | ||
*/ | ||
FrostBitcoin:4,"4":"FrostBitcoin", }); | ||
/** | ||
* The curve for which a key can be used | ||
@@ -399,2 +403,7 @@ */ | ||
export function __wbindgen_error_new(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_string_get(arg0, arg1) { | ||
@@ -409,7 +418,2 @@ const obj = getObject(arg1); | ||
export function __wbindgen_error_new(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_is_string(arg0) { | ||
@@ -436,7 +440,2 @@ const ret = typeof(getObject(arg0)) === 'string'; | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_jsval_loose_eq(arg0, arg1) { | ||
@@ -473,2 +472,7 @@ const ret = getObject(arg0) == getObject(arg1); | ||
export function __wbindgen_string_new(arg0, arg1) { | ||
const ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbg_getwithrefkey_d1f0d12f1f1b63ea(arg0, arg1) { | ||
@@ -475,0 +479,0 @@ const ret = getObject(arg0)[getObject(arg1)]; |
@@ -23,2 +23,6 @@ /* tslint:disable */ | ||
Frost = 3, | ||
/** | ||
* FROST variant that is compatible with Bitcoin Schnorr | ||
*/ | ||
FrostBitcoin = 4, | ||
} | ||
@@ -25,0 +29,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"description": "Cryptography code for exporting a key from Dfns", | ||
"version": "0.2.1", | ||
"version": "0.2.3", | ||
"license": "MIT OR Apache-2.0", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
422627
692