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

@liquality/bitcoin-utils

Package Overview
Dependencies
Maintainers
4
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquality/bitcoin-utils - npm Package Compare versions

Comparing version 0.4.23 to 0.4.24

2

dist/index.cjs.js

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

module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports=require("@liquality/crypto")},function(t,e){t.exports=require("@liquality/bitcoin-networks")},function(t,e){t.exports=require("lodash")},function(t){t.exports=JSON.parse('{"a":"0.4.23"}')},function(t,e){t.exports=require("coinselect")},function(t,e,n){"use strict";n.r(e),n.d(e,"calculateFee",(function(){return a})),n.d(e,"compressPubKey",(function(){return l})),n.d(e,"getAddressNetwork",(function(){return p})),n.d(e,"selectCoins",(function(){return d})),n.d(e,"AddressTypes",(function(){return b}));var r=n(2),u=n(0),o=n(1),i=n.n(o),c=n(4),s=n.n(c),f=n(3);function a(t,e,n){return(148*t+34*e+10)*n}function l(t){const e=t.substring(2,66),n=t.substring(66,130);return(parseInt(n.substring(62,64),16)%2==0?"02":"03")+e}function p(t){let e;if(!(e=Object(r.findKey)(i.a,e=>t.startsWith(e.bech32)))){const n=u.base58.decode(t).toString("hex").substring(0,2);e=Object(r.findKey)(i.a,t=>{return[Object(u.padHexStart)(t.pubKeyHash.toString(16),2),Object(u.padHexStart)(t.scriptHash.toString(16),2)].includes(n)})}return i.a[e]}function d(t,e,n,r){let u,o,i=0;for(let c=n;i<r;c++)({inputs:u,outputs:o,fee:i}=s()(t,e,Math.ceil(c)));return{inputs:u,outputs:o,fee:i}}n.d(e,"version",(function(){return f.a}));const b=["legacy","p2sh-segwit","bech32"]}]);
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)n.d(r,u,function(e){return t[e]}.bind(null,u));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e){t.exports=require("@liquality/crypto")},function(t,e){t.exports=require("@liquality/bitcoin-networks")},function(t,e){t.exports=require("lodash")},function(t){t.exports=JSON.parse('{"a":"0.4.24"}')},function(t,e){t.exports=require("coinselect")},function(t,e,n){"use strict";n.r(e),n.d(e,"calculateFee",(function(){return a})),n.d(e,"compressPubKey",(function(){return l})),n.d(e,"getAddressNetwork",(function(){return p})),n.d(e,"selectCoins",(function(){return d})),n.d(e,"AddressTypes",(function(){return b}));var r=n(2),u=n(0),o=n(1),i=n.n(o),c=n(4),s=n.n(c),f=n(3);function a(t,e,n){return(148*t+34*e+10)*n}function l(t){const e=t.substring(2,66),n=t.substring(66,130);return(parseInt(n.substring(62,64),16)%2==0?"02":"03")+e}function p(t){let e;if(!(e=Object(r.findKey)(i.a,e=>t.startsWith(e.bech32)))){const n=u.base58.decode(t).toString("hex").substring(0,2);e=Object(r.findKey)(i.a,t=>{return[Object(u.padHexStart)(t.pubKeyHash.toString(16),2),Object(u.padHexStart)(t.scriptHash.toString(16),2)].includes(n)})}return i.a[e]}function d(t,e,n,r){let u,o,i=0;for(let c=n;i<r;c++)({inputs:u,outputs:o,fee:i}=s()(t,e,Math.ceil(c)));return{inputs:u,outputs:o,fee:i}}n.d(e,"version",(function(){return f.a}));const b=["legacy","p2sh-segwit","bech32"]}]);
//# sourceMappingURL=index.cjs.js.map
{
"name": "@liquality/bitcoin-utils",
"umdName": "BitcoinUtils",
"version": "0.4.23",
"version": "0.4.24",
"description": "",

@@ -21,5 +21,5 @@ "module": "lib/index.js",

"@babel/runtime": "^7.4.3",
"@liquality/bitcoin-networks": "^0.4.23",
"@liquality/crypto": "^0.4.23",
"@liquality/utils": "^0.4.23",
"@liquality/bitcoin-networks": "^0.4.24",
"@liquality/crypto": "^0.4.24",
"@liquality/utils": "^0.4.24",
"coinselect": "^3.1.11",

@@ -42,3 +42,3 @@ "lodash": "^4.17.13"

},
"gitHead": "dc400d07febfc85c241260baac34b47a42a881e5"
"gitHead": "0f590f7c9fa14f7f4f9318d9c5bea648dbdb5341"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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