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

@liquality/bitcoin-utils

Package Overview
Dependencies
Maintainers
5
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.3.1 to 0.3.2

2

dist/index.cjs.js

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

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

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

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

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

},
"gitHead": "4d5197062342cca7fd382db5d28271d7e468e0dc"
"gitHead": "777a364476ba68406ec3821c75abf712b49d5001"
}

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