rm getAddress
This commit is contained in:
parent
4ed1a49dc5
commit
c2a5d9dc1a
9 changed files with 115 additions and 92 deletions
test/integration
|
@ -1,14 +1,16 @@
|
|||
/* global describe, it */
|
||||
|
||||
var assert = require('assert')
|
||||
let assert = require('assert')
|
||||
let bip32 = require('bip32')
|
||||
var bip39 = require('bip39')
|
||||
var bitcoin = require('../../')
|
||||
let bip39 = require('bip39')
|
||||
let bitcoin = require('../../')
|
||||
|
||||
var baddress = bitcoin.address
|
||||
var bcrypto = bitcoin.crypto
|
||||
function getAddress (node) {
|
||||
return baddress.toBase58Check(bcrypto.hash160(node.publicKey), bitcoin.networks.bitcoin.pubKeyHash)
|
||||
// TODO: remove
|
||||
let baddress = bitcoin.address
|
||||
let bcrypto = bitcoin.crypto
|
||||
function getAddress (node, network) {
|
||||
network = network || bitcoin.networks.bitcoin
|
||||
return baddress.toBase58Check(bcrypto.hash160(node.publicKey), network.pubKeyHash)
|
||||
}
|
||||
|
||||
describe('bitcoinjs-lib (BIP32)', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue