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
|
@ -5,18 +5,6 @@ var types = require('../src/types')
|
|||
var typeforce = require('typeforce')
|
||||
|
||||
describe('types', function () {
|
||||
describe('BigInt/ECPoint', function () {
|
||||
it('return true for duck types', function () {
|
||||
assert(types.BigInt(new function BigInteger () {}()))
|
||||
assert(types.ECPoint(new function Point () {}()))
|
||||
})
|
||||
|
||||
it('return false for bad types', function () {
|
||||
assert(!types.BigInt(new function NotABigInteger () {}()))
|
||||
assert(!types.ECPoint(new function NotAPoint () {}()))
|
||||
})
|
||||
})
|
||||
|
||||
describe('Buffer Hash160/Hash256', function () {
|
||||
var buffer20byte = Buffer.alloc(20)
|
||||
var buffer32byte = Buffer.alloc(32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue