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.5 to 0.4.6

2

dist/index.cjs.js

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

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

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

"@babel/runtime": "^7.4.3",
"@liquality/bitcoin-networks": "^0.4.5",
"@liquality/crypto": "^0.4.5",
"@liquality/utils": "^0.4.5",
"@liquality/bitcoin-networks": "^0.4.6",
"@liquality/crypto": "^0.4.6",
"@liquality/utils": "^0.4.6",
"lodash": "^4.17.13"

@@ -41,3 +41,3 @@ },

},
"gitHead": "1902e157c62db8d032da9a054f4adfd2babc4975"
"gitHead": "bf5b1af74208a66344252a85a773beddae631b06"
}

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