WIP: sign message

This commit is contained in:
Matias Alejo Garcia 2014-11-26 08:38:02 -03:00
commit 05325b2d92
8 changed files with 202 additions and 348 deletions

View file

@ -104,11 +104,11 @@ describe('TxProposal', function() {
});
});
describe('#fromObj', function() {
describe('#fromUntrustedObj', function() {
it('should fail to create from wrong object', function() {
var b = new FakeBuilder();
(function() {
var txp = TxProposal.fromObj({
var txp = TxProposal.fromUntrustedObj({
creator: 1,
createdTs: 1,
builderObj: b.toObj(),
@ -131,7 +131,7 @@ describe('TxProposal', function() {
inputChainPaths: ['m/1'],
};
(function() {
txp = TxProposal.fromObj(o, {
txp = TxProposal.fromUntrustedObj(o, {
pepe: 100
});
}).should.throw('Invalid tx proposal: no ins');
@ -143,6 +143,9 @@ describe('TxProposal', function() {
});
});
});
describe('#fromObj', function() {
});
describe('#setSent', function() {