Skip to content

Commit

Permalink
Add creation of split wallet from existing private key
Browse files Browse the repository at this point in the history
  • Loading branch information
danyshaanan committed Nov 1, 2017
1 parent 72aefc0 commit ffcf26a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bitaddress.org.html
Original file line number Diff line number Diff line change
Expand Up @@ -6849,6 +6849,9 @@
<br/>
<label id="splitlabelshares">Number of shares</label>
<input type="text" id="splitshares" value="3" size="4"/>
<br/>
<label id="splitlabeloptionalprivate">Use specific private key (optional)</label>
<input type="text" id="splitoptionalprivate" value="" />
<span><input type="button" id="splitview" value="Generate" onclick="ninja.wallets.splitwallet.splitKey();"></span>
<div id="splitstep1icon" class="more " onclick="ninja.wallets.splitwallet.openCloseStep(1);"></div>
</div>
Expand Down Expand Up @@ -10662,7 +10665,8 @@
try {
var numshares = parseInt(document.getElementById('splitshares').value);
var threshold = parseInt(document.getElementById('splitthreshold').value);
var key = new Bitcoin.ECKey(false);
var optionalprivate = document.getElementById('splitoptionalprivate').value;
var key = new Bitcoin.ECKey(optionalprivate || false);
var bitcoinAddress = key.getBitcoinAddress();
var shares = ninja.wallets.splitwallet.getFormattedShares(key.getBitcoinHexFormat(), numshares, threshold);

Expand Down

0 comments on commit ffcf26a

Please sign in to comment.