From 6b21a3f83b22a132a7b20c639d1fd0bd54673422 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 22 Feb 2012 18:41:52 +0300 Subject: [PATCH] remote.php --- client/remote.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 client/remote.php diff --git a/client/remote.php b/client/remote.php new file mode 100644 index 00000000..8ad23195 --- /dev/null +++ b/client/remote.php @@ -0,0 +1,24 @@ +\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 "
"; + +if($_POST['submit']) { + $daemon = new jsonRPCClient('http://foo:bar@ecdsa.org:8444/'); + try{ + $r = $daemon->getnewaddress(); + if($r) { + echo '
'; + echo "bitcoin:$r\n\n"; + } + } catch(Exception $e) { + echo "error: cannot reach wallet daemon"; + } +} +echo ""; +?>