1
0

mv client/* . && rm -fr client

This commit is contained in:
genjix
2012-04-29 17:49:41 +01:00
parent fc288a67cb
commit b3fd4a2832
38 changed files with 0 additions and 0 deletions

24
remote.php Normal file
View File

@@ -0,0 +1,24 @@
<?
require_once 'jsonrpcphp/includes/jsonRPCClient.php';
echo "<pre>\n";
echo "This page demonstrates the generation of new addresses by a neutralized Electrum wallet.\n\n";
echo "A neutralized wallet does not contain the seed that allows to generate private keys.\nIt contains a master public key that allows to create new addresses.\n\n";
echo "An attacker getting access to the neutralized wallet cannot steal the bitcoins.\n";
echo "The full wallet (with seed) is not stored on the webserver.\n\n";
echo "<form action=\"\" method=\"post\"><input type=\"submit\" name=\"submit\" value=\"Get new address\"/></form> ";
if($_POST['submit']) {
$daemon = new jsonRPCClient('http://foo:bar@ecdsa.org:8444/');
try{
$r = $daemon->getnewaddress();
if($r) {
echo '<br/>';
echo "<a href='bitcoin:$r'>bitcoin:$r</a>\n\n";
}
} catch(Exception $e) {
echo "error: cannot reach wallet daemon";
}
}
echo "</pre>";
?>