Changes to new version-less ECKey API
This commit is contained in:
parent
a1be488d1b
commit
b40374e332
9 changed files with 61 additions and 85 deletions
src
|
@ -50,13 +50,13 @@ var Wallet = function (seed, options) {
|
|||
|
||||
this.generateAddress = function() {
|
||||
var key = externalAccount.derive(this.addresses.length)
|
||||
this.addresses.push(key.getBitcoinAddress().toString())
|
||||
this.addresses.push(key.getAddress().toString())
|
||||
return this.addresses[this.addresses.length - 1]
|
||||
}
|
||||
|
||||
this.generateChangeAddress = function() {
|
||||
var key = internalAccount.derive(this.changeAddresses.length)
|
||||
this.changeAddresses.push(key.getBitcoinAddress().toString())
|
||||
this.changeAddresses.push(key.getAddress().toString())
|
||||
return this.changeAddresses[this.changeAddresses.length - 1]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue