New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bitgo/wasm-miniscript

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/wasm-miniscript - npm Package Compare versions

Comparing version 1.11.0-beta.1 to 1.11.0

3

dist/browser/js/index.d.ts

@@ -5,3 +5,2 @@ export type DescriptorPkType = "derivable" | "definite" | "string";

interface WrapDescriptor {
/** These are not the same types of nodes as in the ast module */
node(): unknown;

@@ -13,3 +12,2 @@ }

interface WrapMiniscript {
/** These are not the same types of nodes as in the ast module */
node(): unknown;

@@ -25,2 +23,1 @@ }

export { WrapPsbt as Psbt } from "./wasm/wasm_miniscript";
export * as ast from "./ast";

@@ -8,2 +8,1 @@ import * as wasm from "./wasm/wasm_miniscript";

export { WrapPsbt as Psbt } from "./wasm/wasm_miniscript";
export * as ast from "./ast";

58

dist/browser/js/wasm/wasm_miniscript_bg.js

@@ -64,11 +64,2 @@ let wasm;

let WASM_VECTOR_LEN = 0;
function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8ArrayMemory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let cachedDataViewMemory0 = null;

@@ -88,7 +79,3 @@

function _assertClass(instance, klass) {
if (!(instance instanceof klass)) {
throw new Error(`expected instance of ${klass.name}`);
}
}
let WASM_VECTOR_LEN = 0;

@@ -151,2 +138,15 @@ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;

function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8ArrayMemory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function _assertClass(instance, klass) {
if (!(instance instanceof klass)) {
throw new Error(`expected instance of ${klass.name}`);
}
}
const WrapDescriptorFinalization = (typeof FinalizationRegistry === 'undefined')

@@ -211,3 +211,3 @@ ? { register: () => {}, unregister: () => {} }

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
wasm.__wbindgen_export_1(deferred1_0, deferred1_1, 1);
}

@@ -274,3 +274,3 @@ }

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -296,3 +296,3 @@ } finally {

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -327,3 +327,3 @@ } finally {

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
wasm.__wbindgen_export_1(deferred2_0, deferred2_1, 1);
}

@@ -357,5 +357,5 @@ }

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -435,3 +435,3 @@ wasm.wrapdescriptor_fromString(retptr, ptr0, len0, ptr1, len1);

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
wasm.__wbindgen_export_1(deferred1_0, deferred1_1, 1);
}

@@ -449,3 +449,3 @@ }

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -480,3 +480,3 @@ } finally {

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
wasm.__wbindgen_export_1(deferred2_0, deferred2_1, 1);
}

@@ -492,5 +492,5 @@ }

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -517,5 +517,5 @@ wasm.wrapminiscript_fromString(retptr, ptr0, len0, ptr1, len1);

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_1);
const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_2);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -568,3 +568,3 @@ wasm.wrapminiscript_fromBitcoinScript(retptr, ptr0, len0, ptr1, len1);

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export_1);
const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export_2);
const len0 = WASM_VECTOR_LEN;

@@ -593,3 +593,3 @@ wasm.wrappsbt_deserialize(retptr, ptr0, len0);

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -596,0 +596,0 @@ } finally {

/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
export const wrappsbt_serialize: (a: number, b: number) => void;
export const wrappsbt_clone: (a: number) => number;
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_finalize: (a: number, b: number) => void;
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;

@@ -29,2 +22,9 @@ export const wrapdescriptor_node: (a: number, b: number) => void;

export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
export const wrappsbt_serialize: (a: number, b: number) => void;
export const wrappsbt_clone: (a: number) => number;
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_finalize: (a: number, b: number) => void;
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;

@@ -36,4 +36,4 @@ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;

export const __wbindgen_add_to_stack_pointer: (a: number) => number;
export const __wbindgen_export_1: (a: number, b: number) => number;
export const __wbindgen_export_2: (a: number, b: number, c: number) => void;
export const __wbindgen_export_1: (a: number, b: number, c: number) => void;
export const __wbindgen_export_2: (a: number, b: number) => number;
export const __wbindgen_export_3: (a: number, b: number, c: number, d: number) => number;

@@ -5,3 +5,2 @@ export type DescriptorPkType = "derivable" | "definite" | "string";

interface WrapDescriptor {
/** These are not the same types of nodes as in the ast module */
node(): unknown;

@@ -13,3 +12,2 @@ }

interface WrapMiniscript {
/** These are not the same types of nodes as in the ast module */
node(): unknown;

@@ -25,2 +23,1 @@ }

export { WrapPsbt as Psbt } from "./wasm/wasm_miniscript";
export * as ast from "./ast";

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ast = exports.Psbt = exports.Miniscript = exports.Descriptor = void 0;
exports.Psbt = exports.Miniscript = exports.Descriptor = void 0;
const wasm = __importStar(require("./wasm/wasm_miniscript"));

@@ -38,2 +38,1 @@ // we need to access the wasm module here, otherwise webpack gets all weird

Object.defineProperty(exports, "Psbt", { enumerable: true, get: function () { return wasm_miniscript_3.WrapPsbt; } });
exports.ast = __importStar(require("./ast"));
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
export const wrappsbt_serialize: (a: number, b: number) => void;
export const wrappsbt_clone: (a: number) => number;
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_finalize: (a: number, b: number) => void;
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;

@@ -29,2 +22,9 @@ export const wrapdescriptor_node: (a: number, b: number) => void;

export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
export const wrappsbt_serialize: (a: number, b: number) => void;
export const wrappsbt_clone: (a: number) => number;
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
export const wrappsbt_finalize: (a: number, b: number) => void;
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;

@@ -36,4 +36,4 @@ export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;

export const __wbindgen_add_to_stack_pointer: (a: number) => number;
export const __wbindgen_export_1: (a: number, b: number) => number;
export const __wbindgen_export_2: (a: number, b: number, c: number) => void;
export const __wbindgen_export_1: (a: number, b: number, c: number) => void;
export const __wbindgen_export_2: (a: number, b: number) => number;
export const __wbindgen_export_3: (a: number, b: number, c: number, d: number) => number;

@@ -62,11 +62,2 @@

let WASM_VECTOR_LEN = 0;
function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8ArrayMemory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let cachedDataViewMemory0 = null;

@@ -86,7 +77,3 @@

function _assertClass(instance, klass) {
if (!(instance instanceof klass)) {
throw new Error(`expected instance of ${klass.name}`);
}
}
let WASM_VECTOR_LEN = 0;

@@ -147,2 +134,15 @@ let cachedTextEncoder = new TextEncoder('utf-8');

function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8ArrayMemory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function _assertClass(instance, klass) {
if (!(instance instanceof klass)) {
throw new Error(`expected instance of ${klass.name}`);
}
}
const WrapDescriptorFinalization = (typeof FinalizationRegistry === 'undefined')

@@ -207,3 +207,3 @@ ? { register: () => {}, unregister: () => {} }

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
wasm.__wbindgen_export_1(deferred1_0, deferred1_1, 1);
}

@@ -270,3 +270,3 @@ }

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -292,3 +292,3 @@ } finally {

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -323,3 +323,3 @@ } finally {

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
wasm.__wbindgen_export_1(deferred2_0, deferred2_1, 1);
}

@@ -353,5 +353,5 @@ }

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(pk_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -432,3 +432,3 @@ wasm.wrapdescriptor_fromString(retptr, ptr0, len0, ptr1, len1);

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
wasm.__wbindgen_export_1(deferred1_0, deferred1_1, 1);
}

@@ -446,3 +446,3 @@ }

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -477,3 +477,3 @@ } finally {

wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
wasm.__wbindgen_export_1(deferred2_0, deferred2_1, 1);
}

@@ -489,5 +489,5 @@ }

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -514,5 +514,5 @@ wasm.wrapminiscript_fromString(retptr, ptr0, len0, ptr1, len1);

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_1);
const ptr0 = passArray8ToWasm0(script, wasm.__wbindgen_export_2);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_1, wasm.__wbindgen_export_3);
const ptr1 = passStringToWasm0(context_type, wasm.__wbindgen_export_2, wasm.__wbindgen_export_3);
const len1 = WASM_VECTOR_LEN;

@@ -566,3 +566,3 @@ wasm.wrapminiscript_fromBitcoinScript(retptr, ptr0, len0, ptr1, len1);

const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export_1);
const ptr0 = passArray8ToWasm0(psbt, wasm.__wbindgen_export_2);
const len0 = WASM_VECTOR_LEN;

@@ -591,3 +591,3 @@ wasm.wrappsbt_deserialize(retptr, ptr0, len0);

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1, 1);
wasm.__wbindgen_export_1(r0, r1 * 1, 1);
return v1;

@@ -594,0 +594,0 @@ } finally {

{
"name": "@bitgo/wasm-miniscript",
"version": "1.11.0-beta.1",
"version": "1.11.0",
"lint-staged": "MIT",

@@ -15,4 +15,4 @@ "repository": {

"dist/*/js/wasm/wasm_miniscript_bg.wasm.d.ts",
"dist/*/js/ast/*",
"dist/*/js/index.*"
"dist/*/js/index.d.ts",
"dist/*/js/index.js"
],

@@ -19,0 +19,0 @@ "main": "dist/node/js/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc