Removes Key module (use ECKey)
This commit is contained in:
parent
82a17de5c4
commit
addf4528d4
2 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,6 @@ module.exports = {
|
||||||
ECKey: Key.ECKey,
|
ECKey: Key.ECKey,
|
||||||
ECPointFp: require('./jsbn/ec').ECPointFp,
|
ECPointFp: require('./jsbn/ec').ECPointFp,
|
||||||
ECPubKey: Key.ECPubKey,
|
ECPubKey: Key.ECPubKey,
|
||||||
Key: Key.ECKey,
|
|
||||||
Message: require('./message'),
|
Message: require('./message'),
|
||||||
Opcode: require('./opcode'),
|
Opcode: require('./opcode'),
|
||||||
HDWallet: require('./hdwallet'),
|
HDWallet: require('./hdwallet'),
|
||||||
|
|
|
@ -9,7 +9,7 @@ var ECPointFp = bitcoinjs.ECPointFp
|
||||||
var convert = require('../src/convert')
|
var convert = require('../src/convert')
|
||||||
|
|
||||||
it('Keys & Key Management', function () {
|
it('Keys & Key Management', function () {
|
||||||
var p1 = bitcoinjs.Key().getPub().toBytes()
|
var p1 = bitcoinjs.ECKey().getPub().toBytes()
|
||||||
assert.equal(p1.length, 65)
|
assert.equal(p1.length, 65)
|
||||||
|
|
||||||
var p1_q = ECPointFp.decodeFrom(ecparams.getCurve(), p1)
|
var p1_q = ECPointFp.decodeFrom(ecparams.getCurve(), p1)
|
||||||
|
@ -26,7 +26,7 @@ it('Keys & Key Management', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Signing and Verifying', function () {
|
it('Signing and Verifying', function () {
|
||||||
var s1 = bitcoinjs.Key()
|
var s1 = bitcoinjs.ECKey()
|
||||||
var sig_a = s1.sign(BigInteger.ZERO)
|
var sig_a = s1.sign(BigInteger.ZERO)
|
||||||
assert.ok(sig_a, 'Sign null')
|
assert.ok(sig_a, 'Sign null')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue