Update README and attempt to fix whitespace.

This commit is contained in:
Jeff Weiss 2013-04-29 10:43:24 -04:00
parent 04e07e6def
commit e555680e1c
2 changed files with 77 additions and 82 deletions

1
README
View file

@ -49,6 +49,7 @@ window.EllipticCurve BSD License
window.BigInteger BSD License
window.QRCode MIT License
window.Bitcoin MIT License
window.secrets MIT Licenses
The bitaddress.org software is available under The MIT License (MIT)
Copyright (c) 2011-2012 bitaddress.org

View file

@ -7477,9 +7477,6 @@
<script type="text/javascript">
ninja.wallets.splitwallet = {
open: function () {
/* if (document.getElementById("btcaddress").innerHTML == "") {
ninja.wallets.singlewallet.generateNewAddressAndKey();
} */
document.getElementById("splitarea").style.display = "block";
secrets.setRNG();
secrets.init(3);
@ -7516,11 +7513,8 @@
var numshares = parseInt(document.getElementById('splitshares').value);
var threshhold = parseInt(document.getElementById('splitthreshhold').value);
//alert(numshares)
//alert(threshhold)
var shares = secrets.share(Crypto.util.bytesToHex(key.getBitcoinPrivateKeyByteArray()),
numshares, threshhold).map(Crypto.util.hexToBytes).map(Bitcoin.Base58.encode);
//alert(shares);
var output = document.createElement("div");
output.setAttribute("id", "splitoutput");
var m = {};
@ -7553,7 +7547,7 @@
var element = document.getElementById("combineoutput");
if (element != null) element.parentNode.removeChild(element);
var shares = document.getElementById("combineinput").value.split(/\W+/);
var shares = document.getElementById("combineinput").value.trim().split(/\W+/);
var combined = secrets.combine(shares.map(Bitcoin.Base58.decode).
map(Crypto.util.bytesToHex).