Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@secux/app-bch

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secux/app-bch - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

lib/app-bch.d.ts

@@ -41,3 +41,3 @@ import { SecuxBTC } from "@secux/app-btc";

static prepareSign(...args: T4): {
commandData: import("@secux/utility/lib/communication").communicationData;
commands: import("@secux/utility/lib/communication").communicationData[];
rawTx: string;

@@ -44,0 +44,0 @@ };

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuxBCH=void 0;const e=require("@secux/app-btc"),r=require("ow"),t=require("@secux/utility"),i=require("@secux/app-btc/lib/interface"),s=i.coinmap[e.CoinType.BITCOINCASH].coinType;class p extends e.SecuxBTC{static addressConvert(...r){return"string"==typeof r[1]?c(r[1]):(r[1].coin=e.CoinType.BITCOINCASH,o(r[1].script)),super.addressConvert(...r)}static prepareAddress(...r){return c(r[0]),r[1]&&(r[1].coin=e.CoinType.BITCOINCASH,void 0!==r[1].script&&o(r[1].script)),super.prepareAddress(...r)}static resolveAddress(...t){let s;if("string"==typeof t[1]){c(t[1]);s="49"===t[1].match(/\d+/g)[0]?e.ScriptType.P2SH_P2PKH:e.ScriptType.P2PKH}else(0,r.default)(t[1],i.ow_PathObject),o(t[1].script),s=t[1].script;return super.resolveAddress(t[0],{coin:e.CoinType.BITCOINCASH,script:s})}static prepareSign(...r){var t;for(let t of r[0])n(t.path),t.script=e.ScriptType.P2PKH;return n(r[1].to.path),n(null===(t=r[1].utxo)||void 0===t?void 0:t.path),super.prepareSign(...r)}static resolveTransaction(...r){return super.resolveTransaction(r[0],r[1],r[2],e.CoinType.BITCOINCASH)}}function c(e){(0,r.default)(e,(0,t.ow_strictPath)(s,[44,49]))}function o(r){if(!Object.values([e.ScriptType.P2PKH,e.ScriptType.P2SH_P2PKH]).includes(r))throw Error(`ArgumentError: invalid script for BCH, got "${e.ScriptType[r]}"`)}function n(e){e&&(0,r.default)(e,(0,t.ow_strictPath)(s,44))}exports.SecuxBCH=p;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SecuxBCH=void 0;const e=require("@secux/app-btc"),r=require("ow"),t=require("@secux/utility"),i=require("@secux/app-btc/lib/interface"),s=i.coinmap[e.CoinType.BITCOINCASH].coinType;class p extends e.SecuxBTC{static addressConvert(...r){return"string"==typeof r[1]?c(r[1]):(r[1].coin=e.CoinType.BITCOINCASH,o(r[1].script)),super.addressConvert(...r)}static prepareAddress(...r){return c(r[0]),r[1]&&(r[1].coin=e.CoinType.BITCOINCASH,void 0!==r[1].script&&o(r[1].script)),super.prepareAddress(...r)}static resolveAddress(...t){let s;if("string"==typeof t[1]){c(t[1]);s="49"===t[1].match(/\d+/g)[0]?e.ScriptType.P2SH_P2PKH:e.ScriptType.P2PKH}else(0,r.default)(t[1],i.ow_PathObject),o(t[1].script),s=t[1].script;return super.resolveAddress(t[0],{coin:e.CoinType.BITCOINCASH,script:s})}static prepareSign(...r){var t;for(let t of r[0])n(t.path),t.script=e.ScriptType.P2PKH;return n(r[1].to.path),n(null===(t=r[1].utxo)||void 0===t?void 0:t.path),super.prepareSign(...r)}static resolveTransaction(...r){return super.resolveTransaction(r[0],Object.assign(Object.assign({},r[1]),{coin:e.CoinType.BITCOINCASH}))}}function c(e){(0,r.default)(e,(0,t.ow_strictPath)(s,[44,49]))}function o(r){if(!Object.values([e.ScriptType.P2PKH,e.ScriptType.P2SH_P2PKH]).includes(r))throw Error(`ArgumentError: invalid script for BCH, got "${e.ScriptType[r]}"`)}function n(e){e&&(0,r.default)(e,(0,t.ow_strictPath)(s,44))}exports.SecuxBCH=p;
{
"name": "@secux/app-bch",
"version": "3.0.0",
"version": "3.1.0",
"description": "SecuX Hardware Wallet BCH API",

@@ -31,4 +31,4 @@ "keywords": [

"dependencies": {
"@secux/app-btc": "^3.0.0"
"@secux/app-btc": "^3.2.0"
}
}
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