@exodus/models
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,6 @@ | ||
0.1.2 / 2018-12-05 | ||
------------------ | ||
- `UtxosCollection/fee-estimator` does not enforce `P2PKH` addresses. | ||
0.1.1 / 2018-11-27 | ||
@@ -2,0 +7,0 @@ ------------------ |
@@ -8,4 +8,2 @@ "use strict"; | ||
var _assert = _interopRequireDefault(require("assert")); | ||
var varuint = _interopRequireWildcard(require("varuint-bitcoin")); | ||
@@ -15,6 +13,6 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function getSize(assetName, inputs, outputs) { | ||
@@ -27,3 +25,2 @@ if (inputs instanceof _.default) { | ||
if (script === null) script = '76a914000000000000000000000000000000000000000088ac'; | ||
(0, _assert.default)(/^76a914[0-9a-f]{40}88ac$/i.test(script), 'Only P2PKH inputs supported right now'); | ||
const scriptSigLength = 107; | ||
@@ -30,0 +27,0 @@ return t + 32 + 4 + varuint.encodingLength(scriptSigLength) + scriptSigLength + 4; |
{ | ||
"name": "@exodus/models", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Exodus models", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
31318
802
1