change name for sin-test
This commit is contained in:
parent
70c47d2943
commit
05bb2ff3df
|
@ -13,6 +13,7 @@ module.exports.log = require('./util/log');
|
||||||
module.exports.Opcode = require('./Opcode');
|
module.exports.Opcode = require('./Opcode');
|
||||||
module.exports.util = require('./util/util');
|
module.exports.util = require('./util/util');
|
||||||
module.exports.Script = require('./Script');
|
module.exports.Script = require('./Script');
|
||||||
|
module.exports.SINKey = require('./SINKey');
|
||||||
//module.exports.Transaction = require('./Transaction');
|
//module.exports.Transaction = require('./Transaction');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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