v2.6.5 add passphrase required alert to paper wallet for bip38
This commit is contained in:
parent
57a2d18cde
commit
4f11d4fb62
4 changed files with 11 additions and 3 deletions
|
@ -6210,7 +6210,7 @@ body { font-family: Arial; }
|
|||
</div>
|
||||
<div class="authorpgp">
|
||||
<span class="item">
|
||||
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.6.4)</a>
|
||||
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.6.5)</a>
|
||||
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
|
||||
</span>
|
||||
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
||||
|
@ -7476,6 +7476,10 @@ ninja.wallets.paperwallet = {
|
|||
ninja.wallets.paperwallet.pageBreakAt = pageBreakAt;
|
||||
document.getElementById("paperkeyarea").innerHTML = "";
|
||||
if (ninja.wallets.paperwallet.encrypt) {
|
||||
if (passphrase == "") {
|
||||
alert(ninja.translator.get("bip38alertpassphraserequired"));
|
||||
return;
|
||||
}
|
||||
document.getElementById("busyblock").className = "busy";
|
||||
ninja.privateKey.BIP38GenerateIntermediatePointAsync(passphrase, null, null, function (intermediate) {
|
||||
ninja.wallets.paperwallet.intermediatePoint = intermediate;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bitaddress.org",
|
||||
"version": "2.6.4",
|
||||
"version": "2.6.5",
|
||||
"description": "Open Source JavaScript Client-Side Bitcoin Wallet Generator",
|
||||
"main": "Gruntfile.js",
|
||||
"dependencies": {
|
||||
|
|
|
@ -426,7 +426,7 @@
|
|||
</div>
|
||||
<div class="authorpgp">
|
||||
<span class="item">
|
||||
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.6.4)</a>
|
||||
<a href="pgpsignedmsg.txt" target="_blank"><span id="footerlabelversion">Version History</span> (v2.6.5)</a>
|
||||
(<a href="ninja_bitaddress.org.txt" target="_blank" id="footerlabelpgp">PGP</a>)
|
||||
</span>
|
||||
<span class="item">527B 5C82 B1F6 B2DB 72A0<br />ECBF 8749 7B91 6397 4F5A</span>
|
||||
|
|
|
@ -41,6 +41,10 @@ ninja.wallets.paperwallet = {
|
|||
ninja.wallets.paperwallet.pageBreakAt = pageBreakAt;
|
||||
document.getElementById("paperkeyarea").innerHTML = "";
|
||||
if (ninja.wallets.paperwallet.encrypt) {
|
||||
if (passphrase == "") {
|
||||
alert(ninja.translator.get("bip38alertpassphraserequired"));
|
||||
return;
|
||||
}
|
||||
document.getElementById("busyblock").className = "busy";
|
||||
ninja.privateKey.BIP38GenerateIntermediatePointAsync(passphrase, null, null, function (intermediate) {
|
||||
ninja.wallets.paperwallet.intermediatePoint = intermediate;
|
||||
|
|
Loading…
Reference in a new issue