rm ecdsa, add new ECPair using secp256k1
This commit is contained in:
parent
49422672cf
commit
fba0699dd3
18 changed files with 227 additions and 576 deletions
test/integration
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue