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

bitbox-api

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbox-api - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

39

bitbox_api_bg.js

@@ -243,3 +243,3 @@ import { getWebHIDDevice, getBridgeDevice, jsSleep } from './webhid';

function __wbg_adapter_52(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc108426a5182dac3(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha5459332f89be50f(arg0, arg1, addHeapObject(arg2));
}

@@ -315,2 +315,13 @@

/**
* @param {string} recipient_address
* @returns {EthAddressCase}
*/
export function ethIdentifyCase(recipient_address) {
const ptr0 = passStringToWasm0(recipient_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.ethIdentifyCase(ptr0, len0);
return takeObject(ret);
}
function passArray8ToWasm0(arg, malloc) {

@@ -341,4 +352,4 @@ const ptr = malloc(arg.length * 1, 1) >>> 0;

}
function __wbg_adapter_178(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h094a537c39e96ca0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_179(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h91daa27992f674cd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -606,6 +617,7 @@

* @param {EthTransaction} tx
* @param {EthAddressCase | undefined} [address_case]
* @returns {Promise<EthSignature>}
*/
ethSignTransaction(chain_id, keypath, tx) {
const ret = wasm.pairedbitbox_ethSignTransaction(this.__wbg_ptr, chain_id, addHeapObject(keypath), addHeapObject(tx));
ethSignTransaction(chain_id, keypath, tx, address_case) {
const ret = wasm.pairedbitbox_ethSignTransaction(this.__wbg_ptr, chain_id, addHeapObject(keypath), addHeapObject(tx), isLikeNone(address_case) ? 0 : addHeapObject(address_case));
return takeObject(ret);

@@ -617,6 +629,7 @@ }

* @param {Eth1559Transaction} tx
* @param {EthAddressCase | undefined} [address_case]
* @returns {Promise<EthSignature>}
*/
ethSign1559Transaction(keypath, tx) {
const ret = wasm.pairedbitbox_ethSign1559Transaction(this.__wbg_ptr, addHeapObject(keypath), addHeapObject(tx));
ethSign1559Transaction(keypath, tx, address_case) {
const ret = wasm.pairedbitbox_ethSign1559Transaction(this.__wbg_ptr, addHeapObject(keypath), addHeapObject(tx), isLikeNone(address_case) ? 0 : addHeapObject(address_case));
return takeObject(ret);

@@ -842,3 +855,3 @@ }

export function __wbg_getWebHIDDevice_de6f8d72ee867a41() { return handleError(function (arg0, arg1, arg2) {
export function __wbg_getWebHIDDevice_b0c6403b73dd7a2c() { return handleError(function (arg0, arg1, arg2) {
const ret = getWebHIDDevice(arg0, arg1, takeObject(arg2));

@@ -848,3 +861,3 @@ return addHeapObject(ret);

export function __wbg_getBridgeDevice_c818ee958c7ec7d8() { return handleError(function (arg0) {
export function __wbg_getBridgeDevice_78162303c7d8bbd2() { return handleError(function (arg0) {
const ret = getBridgeDevice(takeObject(arg0));

@@ -854,3 +867,3 @@ return addHeapObject(ret);

export function __wbg_jsSleep_bd0a0d4ada5cb99b(arg0) {
export function __wbg_jsSleep_5e4f5d05d0900f3a(arg0) {
const ret = jsSleep(arg0);

@@ -1158,3 +1171,3 @@ return addHeapObject(ret);

try {
return __wbg_adapter_178(a, state0.b, arg0, arg1);
return __wbg_adapter_179(a, state0.b, arg0, arg1);
} finally {

@@ -1250,6 +1263,6 @@ state0.a = a;

export function __wbindgen_closure_wrapper2271(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 240, __wbg_adapter_52);
export function __wbindgen_closure_wrapper2275(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 234, __wbg_adapter_52);
return addHeapObject(ret);
};

@@ -44,6 +44,11 @@ /* tslint:disable */

export function isUserAbort(err: Error): boolean;
/**
* @param {string} recipient_address
* @returns {EthAddressCase}
*/
export function ethIdentifyCase(recipient_address: string): EthAddressCase;
type OnCloseCb = undefined | (() => void);
type Product = 'unknown' | 'bitbox02-multi' | 'bitbox02-btconly';
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc';
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc' | 'rbtc';
type BtcFormatUnit = 'default' | 'sat';

@@ -111,2 +116,3 @@ type XPubType = 'tpub' | 'xpub' | 'ypub' | 'zpub' | 'vpub' | 'upub' | 'Vpub' | 'Zpub' | 'Upub' | 'Ypub';

};
type EthAddressCase = 'upper' | 'lower' | 'mixed';
type CardanoXpub = Uint8Array;

@@ -335,5 +341,6 @@ type CardanoXpubs = CardanoXpub[];

* @param {EthTransaction} tx
* @param {EthAddressCase | undefined} [address_case]
* @returns {Promise<EthSignature>}
*/
ethSignTransaction(chain_id: bigint, keypath: Keypath, tx: EthTransaction): Promise<EthSignature>;
ethSignTransaction(chain_id: bigint, keypath: Keypath, tx: EthTransaction, address_case?: EthAddressCase): Promise<EthSignature>;
/**

@@ -343,5 +350,6 @@ * Signs an Ethereum type 2 transaction according to EIP 1559. It returns a 65 byte signature (R, S, and 1 byte recID).

* @param {Eth1559Transaction} tx
* @param {EthAddressCase | undefined} [address_case]
* @returns {Promise<EthSignature>}
*/
ethSign1559Transaction(keypath: Keypath, tx: Eth1559Transaction): Promise<EthSignature>;
ethSign1559Transaction(keypath: Keypath, tx: Eth1559Transaction, address_case?: EthAddressCase): Promise<EthSignature>;
/**

@@ -348,0 +356,0 @@ * Signs an Ethereum message. The provided msg will be prefixed with "\x19Ethereum message\n" +

@@ -7,3 +7,3 @@ {

"description": "A library to interact with the BitBox02 hardware wallet",
"version": "0.6.0",
"version": "0.7.0",
"license": "Apache-2.0",

@@ -10,0 +10,0 @@ "repository": {

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