rm ecdsa, add new ECPair using secp256k1

This commit is contained in:
Daniel Cousens 2018-05-22 16:33:43 +10:00
parent 49422672cf
commit fba0699dd3
18 changed files with 227 additions and 576 deletions
test/integration

View file

@ -72,7 +72,7 @@ let baddress = bitcoin.address
let bcrypto = bitcoin.crypto
function getAddress (node, network) {
network = network || bitcoin.networks.bitcoin
return baddress.toBase58Check(bcrypto.hash160(node.getPublicKeyBuffer()), network.pubKeyHash)
return baddress.toBase58Check(bcrypto.hash160(node.getPublicKey()), network.pubKeyHash)
}
function randomAddress () {