diff --git a/bin/rsign.js b/bin/rsign.js index dc8a33cc..ba41066f 100755 --- a/bin/rsign.js +++ b/bin/rsign.js @@ -76,6 +76,7 @@ function sign_transaction() { tx.complete(); var unsigned_blob = tx.serialize().to_hex(); + var unsigned_hash = tx.signingHash(); tx.sign(); if (verbose) { @@ -83,7 +84,7 @@ function sign_transaction() { sim.tx_blob = tx.serialize().to_hex(); sim.tx_json = tx.tx_json; - sim.tx_signing_hash = tx.signing_hash().to_hex(); + sim.tx_signing_hash = unsigned_hash; sim.tx_unsigned = unsigned_blob; console.log(JSON.stringify(sim, null, 2)); diff --git a/src/js/ripple/transaction.js b/src/js/ripple/transaction.js index 572338ad..dc453445 100644 --- a/src/js/ripple/transaction.js +++ b/src/js/ripple/transaction.js @@ -280,7 +280,7 @@ Transaction.prototype.sign = function() { var prev_sig = this.tx_json.TxnSignature; delete this.tx_json.TxnSignature; - var hash = this.signing_hash(); + var hash = this.signingHash(); // If the hash is the same, we can re-use the previous signature if (prev_sig && hash === this.previousSigningHash) {