Refactor: Remove all require statements, remove ECPair, remove tiny-secp256k1 dep

This commit is contained in:
junderw 2021-10-20 19:18:01 +09:00
parent f209b0e410
commit e5a77304fa
No known key found for this signature in database
GPG key ID: B256185D3A971908
87 changed files with 1447 additions and 1161 deletions
test/integration

View file

@ -1,10 +1,11 @@
import { ECPair } from 'ecpair';
import { describe, it } from 'mocha';
import * as bitcoin from '../..';
import { regtestUtils } from './_regtest';
const NETWORK = regtestUtils.network;
const keyPairs = [
bitcoin.ECPair.makeRandom({ network: NETWORK }),
bitcoin.ECPair.makeRandom({ network: NETWORK }),
ECPair.makeRandom({ network: NETWORK }),
ECPair.makeRandom({ network: NETWORK }),
];
async function buildAndSign(