Merge pull request #105 from dcousens/removeexport
Removes deprecated ECKey.export function
This commit is contained in:
commit
db35a84a80
4 changed files with 7 additions and 20 deletions
|
@ -13,8 +13,8 @@ function sha256FromBytesToBytes(message){
|
|||
}
|
||||
|
||||
it('Keys & Key Management', function () {
|
||||
var p1 = bitcoinjs.Key().getPub()['export']('bytes');
|
||||
assert.equal(p1.length, 65);
|
||||
var p1 = bitcoinjs.Key().getPub().toBytes()
|
||||
assert.equal(p1.length, 65)
|
||||
|
||||
var p1_q = ECPointFp.decodeFrom(ecparams.getCurve(), p1);
|
||||
assert.ok(p1_q);
|
||||
|
|
|
@ -170,7 +170,7 @@ describe('Transaction', function() {
|
|||
var key = new ECKey('L44f7zxJ5Zw4EK9HZtyAnzCYz2vcZ5wiJf9AuwhJakiV4xVkxBeb')
|
||||
tx.sign(0, key)
|
||||
|
||||
var pub = key.getPub().export('bytes')
|
||||
var pub = key.getPub().toBytes()
|
||||
var script = prevTx.outs[0].script.buffer
|
||||
var sig = tx.ins[0].script.chunks[0]
|
||||
|
||||
|
@ -187,7 +187,7 @@ describe('Transaction', function() {
|
|||
|
||||
it('returns true for valid signature', function(){
|
||||
var key = new ECKey('L44f7zxJ5Zw4EK9HZtyAnzCYz2vcZ5wiJf9AuwhJakiV4xVkxBeb')
|
||||
var pub = key.getPub().export('bytes')
|
||||
var pub = key.getPub().toBytes()
|
||||
var script = prevTx.outs[0].script.buffer
|
||||
var sig = validTx.ins[0].script.chunks[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue