@liquality/bitcoin-utils
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -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.3.7"}},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.3.8"}},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.3.7", | ||
"version": "0.3.8", | ||
"description": "", | ||
@@ -21,5 +21,5 @@ "module": "lib/index.js", | ||
"@babel/runtime": "^7.4.3", | ||
"@liquality/bitcoin-networks": "^0.3.7", | ||
"@liquality/crypto": "^0.3.7", | ||
"@liquality/utils": "^0.3.7", | ||
"@liquality/bitcoin-networks": "^0.3.8", | ||
"@liquality/crypto": "^0.3.8", | ||
"@liquality/utils": "^0.3.8", | ||
"lodash": "^4.17.13" | ||
@@ -41,3 +41,3 @@ }, | ||
}, | ||
"gitHead": "6b304671d468ed70f6ca75c2a651da2731eeb7e1" | ||
"gitHead": "e94bae03fb83844069ee4fab9683d195142e4a4c" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Addedbn.js@4.12.0(transitive)
+ Addedelliptic@6.6.0(transitive)
- Removedbn.js@4.12.1(transitive)
- Removedelliptic@6.6.1(transitive)
Updated@liquality/crypto@^0.3.8
Updated@liquality/utils@^0.3.8