3 changed files with 31 additions and 7 deletions
@ -1,7 +0,0 @@ |
|||
|
|||
var SINKey = require('./SINKey').class(); |
|||
|
|||
var sk = new SINKey(); |
|||
sk.generate(); |
|||
console.dir(sk.storeObj()); |
|||
|
@ -0,0 +1,30 @@ |
|||
'use strict'; |
|||
|
|||
|
|||
|
|||
var chai = require('chai'); |
|||
var bitcore = require('../bitcore'); |
|||
|
|||
var should = chai.should(); |
|||
|
|||
var SINKeyModule = bitcore.SINKey; |
|||
var SINKey; |
|||
|
|||
|
|||
describe('SINKey', function() { |
|||
it('should initialze the main object', function() { |
|||
should.exist(SINKeyModule); |
|||
}); |
|||
it('should be able to create class', function() { |
|||
SINKey = SINKeyModule.class(); |
|||
should.exist(SINKey); |
|||
}); |
|||
it('should be able to create instance', function() { |
|||
var sk = new SINKey(); |
|||
sk.generate(); |
|||
should.exist(sk.created); |
|||
should.exist(sk.privKey.private); |
|||
should.exist(sk.privKey.public); |
|||
should.exist(sk.privKey.compressed); |
|||
}); |
|||
}); |
Loading…
Reference in new issue