diff --git a/ts_src/payments/p2sh.ts b/ts_src/payments/p2sh.ts index 281e3df..b2e6bdf 100644 --- a/ts_src/payments/p2sh.ts +++ b/ts_src/payments/p2sh.ts @@ -1,19 +1,19 @@ -import { Payment, PaymentOpts } from './index' // eslint-disable-line -import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line -import * as bscript from '../script' -import * as bcrypto from '../crypto' -import * as lazy from './lazy' -const typef = require('typeforce') -const OPS = bscript.OPS - -const bs58check = require('bs58check') - -function stacksEqual (a: Array, b: Array): boolean { - if (a.length !== b.length) return false - - return a.every(function (x, i) { - return x.equals(b[i]) - }) +import { Payment, PaymentOpts } from './index'; // eslint-disable-line +import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line +import * as bscript from '../script'; +import * as bcrypto from '../crypto'; +import * as lazy from './lazy'; +const typef = require('typeforce'); +const OPS = bscript.OPS; + +const bs58check = require('bs58check'); + +function stacksEqual(a: Array, b: Array): boolean { + if (a.length !== b.length) return false; + + return a.every(function(x, i) { + return x.equals(b[i]); + }); } // input: [redeemScriptSig ...] {redeemScript} diff --git a/ts_src/payments/p2wsh.ts b/ts_src/payments/p2wsh.ts index 5f9b02d..78e842d 100644 --- a/ts_src/payments/p2wsh.ts +++ b/ts_src/payments/p2wsh.ts @@ -1,10 +1,10 @@ -import { Payment, PaymentOpts } from './index' // eslint-disable-line -import { bitcoin as BITCOIN_NETWORK } from '../networks' // eslint-disable-line -import * as bscript from '../script' -import * as bcrypto from '../crypto' -import * as lazy from './lazy' -const typef = require('typeforce') -const OPS = bscript.OPS +import { Payment, PaymentOpts } from './index'; // eslint-disable-line +import { bitcoin as BITCOIN_NETWORK } from '../networks'; // eslint-disable-line +import * as bscript from '../script'; +import * as bcrypto from '../crypto'; +import * as lazy from './lazy'; +const typef = require('typeforce'); +const OPS = bscript.OPS; const bech32 = require('bech32');