Add taproot test with new CJS compatible tiny-secp256k1

This commit is contained in:
junderw 2021-11-17 16:01:08 +09:00
parent 424abf2376
commit 191b9e8573
No known key found for this signature in database
GPG key ID: B256185D3A971908
6 changed files with 166 additions and 19 deletions
test/integration

View file

@ -1,11 +1,13 @@
import * as assert from 'assert';
import * as bip32 from 'bip32';
import BIP32Factory from 'bip32';
import * as ecc from 'tiny-secp256k1';
import { ECPair } from 'ecpair';
import { describe, it } from 'mocha';
import * as bitcoin from '../..';
import { regtestUtils } from './_regtest';
const rng = require('randombytes');
const regtest = regtestUtils.network;
const bip32 = BIP32Factory(ecc);
const validator = (
pubkey: Buffer,