updated coinbin.js

Fixed a bug, which was reported on https://www.reddit.com/r/Bitcoin/comments/5kowvt/psa_coinbin_appears_to_be_trying_to_steal_coins/ that appears to have caused incorrect HD key pairs to be generated in certain situations, because 'coinjs.compressed = true;' was not always being set when the user entered a HD onto the #verify tab.
This commit is contained in:
OutCast3k 2016-12-28 09:50:27 +00:00 committed by GitHub
parent 24028a001d
commit 1b111b335d

View file

@ -1417,6 +1417,7 @@ $(document).ready(function() {
} }
function decodeHDaddress(){ function decodeHDaddress(){
coinjs.compressed = false;
var s = $("#verifyScript").val(); var s = $("#verifyScript").val();
try { try {
var hex = Crypto.util.bytesToHex((coinjs.base58decode(s)).slice(0,4)); var hex = Crypto.util.bytesToHex((coinjs.base58decode(s)).slice(0,4));