d-yokoi
6 years ago
No known key found for this signature in database
GPG Key ID: 49EAF81BC6A0D19A
2 changed files with
23 additions and
23 deletions
-
ts_src/payments/p2sh.ts
-
ts_src/payments/p2wsh.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<Buffer>, b: Array<Buffer>): 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<Buffer>, b: Array<Buffer>): boolean { |
|
|
|
if (a.length !== b.length) return false; |
|
|
|
|
|
|
|
return a.every(function(x, i) { |
|
|
|
return x.equals(b[i]); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// input: [redeemScriptSig ...] {redeemScript}
|
|
|
|
|
|
@ -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'); |
|
|
|
|
|
|
|