Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
supertestnet authored Jun 19, 2024
1 parent ca8a351 commit 293690b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,11 @@
</script>
</head>
<body>
<script>var push_all_funds_to_counterparty = true; if ( $_GET[ "alice" ] == "true" ) push_all_funds_to_counterparty = false;</script>
<script>var push_all_funds_to_counterparty = true; if ( $_GET[ "bob" ] != "true" ) push_all_funds_to_counterparty = false;</script>
<h1>Welcome to hedgehog</h1>
<p><button class="send_btn">Send</button><button class="receive_btn">Receive</button><br><button onclick="hedgehog.openChannel( push_all_funds_to_counterparty )" class="open_channel">Open channel</button><br><button class="close_channel">Close channel</button></p>
<script>
if ( $_GET[ "alice" ] == "true" ) {
if ( $_GET[ "bob" ] != "true" ) {
var privkey = hedgehog.bytesToHex( nobleSecp256k1.utils.randomPrivateKey() );
var pubkey = nobleSecp256k1.getPublicKey( privkey, true ).substring( 2 );
var preimage = hedgehog.bytesToHex( nobleSecp256k1.utils.randomPrivateKey() ).substring( 0, 32 );
Expand Down

0 comments on commit 293690b

Please sign in to comment.