From c3efcb3f274dcf672903a521a4156ca1e4e00f45 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 9 Apr 2014 23:04:22 -0300 Subject: [PATCH] add sign in block --- js/models/PrivateKey.js | 13 +++++++++++++ js/models/PublicKeyRing.js | 21 +++++---------------- js/models/TxProposals.js | 6 +++--- test/test.PrivateKey.js | 20 ++++++++++++++++++++ test/test.publickeyring.js | 17 +++++++---------- test/test.txproposal.js | 34 ++++++++++++++++++++++++++++++++-- 6 files changed, 80 insertions(+), 31 deletions(-) diff --git a/js/models/PrivateKey.js b/js/models/PrivateKey.js index 8e60ebf05..1b27fe7d3 100644 --- a/js/models/PrivateKey.js +++ b/js/models/PrivateKey.js @@ -32,4 +32,17 @@ PrivateKey.prototype.get = function(index,isChange) { return wk; }; +PrivateKey.prototype.getAll = function(addressIndex, changeAddressIndex) { + var ret = []; + for(var i=0;i