Added sign with keys method to transaction and did lots of small cleanups

This commit is contained in:
vub 2013-10-21 14:00:31 -04:00
commit f53a4e3ffa
5 changed files with 109 additions and 94 deletions

View file

@ -114,5 +114,8 @@ module.exports = {
*/
sha256ripe160: function (data) {
return Crypto.RIPEMD160(Crypto.SHA256(data, {asBytes: true}), {asBytes: true});
},
error: function(msg) {
throw new Error(msg);
}
};