From d956a610c6af64020de69586e3995e59192cf207 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Fri, 19 Oct 2018 18:46:10 +0530 Subject: [PATCH 1/4] Rename main.html to index.html --- supernode/{main.html => index.html} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename supernode/{main.html => index.html} (99%) diff --git a/supernode/main.html b/supernode/index.html similarity index 99% rename from supernode/main.html rename to supernode/index.html index 7de7c48..d9538cd 100644 --- a/supernode/main.html +++ b/supernode/index.html @@ -7796,4 +7796,4 @@ - \ No newline at end of file + From 7a68e035f222948ca723aa6795762ca96448433c Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Sat, 20 Oct 2018 21:02:05 +0530 Subject: [PATCH 2/4] improvedcomment parsing, structured the code --- supernode/{main.html => index.html} | 210 +++++++++++++++------------- 1 file changed, 109 insertions(+), 101 deletions(-) rename supernode/{main.html => index.html} (98%) diff --git a/supernode/main.html b/supernode/index.html similarity index 98% rename from supernode/main.html rename to supernode/index.html index 7de7c48..70801c7 100644 --- a/supernode/main.html +++ b/supernode/index.html @@ -6866,21 +6866,23 @@ dest[destPos++] = src[srcPos++]; dest[destPos++] = src[srcPos++]; } - } + } } // scryptCore }; // window.Crypto_scrypt })(); + + - - + + + + + From dfb0297929371e22ae1e7df98f2c2305f375bb09 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Sun, 21 Oct 2018 23:00:33 +0530 Subject: [PATCH 3/4] added flosend.html --- supernode/flosend.html | 3565 ++++++++++++++++++++++++++++++++++++++++ supernode/index.html | 306 +++- 2 files changed, 3803 insertions(+), 68 deletions(-) create mode 100644 supernode/flosend.html diff --git a/supernode/flosend.html b/supernode/flosend.html new file mode 100644 index 0000000..a4a49be --- /dev/null +++ b/supernode/flosend.html @@ -0,0 +1,3565 @@ + + + + + + + + +

Listunspent UTXOs

+ + + +
+ +

For Simplicity, One Input and Two Outputs are taken, locktime is set to 0, sequence is set to max. + SIGHASH_ALL option is chosen for signing raw Transaction.

+

Inputs

+ + + + + + + +

Outputs

+ + + + +
+ + + + +
+

Enter the Transaction Data

+ + +

WIF Key

+ + +

+ +


+

Signed Raw Transaction

+ + +

Broadcast Transaction

+

+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/supernode/index.html b/supernode/index.html index b44858f..fb5659a 100644 --- a/supernode/index.html +++ b/supernode/index.html @@ -165,6 +165,157 @@ })(); } + + + + + + + - - + \ No newline at end of file From 6989c93717ea085b0070cfd2dda15ffdc46ff9ea Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Mon, 22 Oct 2018 14:04:39 +0530 Subject: [PATCH 4/4] flo comment write and fetch functions complete in flosend.html --- supernode/flosend.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/supernode/flosend.html b/supernode/flosend.html index a4a49be..f09112f 100644 --- a/supernode/flosend.html +++ b/supernode/flosend.html @@ -19,8 +19,8 @@ - - + +

Outputs

@@ -2980,14 +2980,14 @@ btrx.floData = ""; //flochange .. look at this - btrx.addinput = function (txid, index, script, sequence) { + btrx.addinput = function (txid, index, scriptPubKey, sequence) { var o = {}; o.outpoint = { 'hash': txid, 'index': index }; //o.script = []; Signature and Public Key should be added after singning - o.script = Crypto.util.hexToBytes(script); //push previous output pubkey script + o.script = Crypto.util.hexToBytes(scriptPubKey); //push previous output pubkey script o.sequence = sequence || ((btrx.locktime == 0) ? 4294967295 : 0); return this.inputs.push(o); } @@ -3439,8 +3439,8 @@ var trx = bitjs.transaction(); var txid = document.getElementById("prevTrxHash").value; var index = document.getElementById("index").value; - var script = document.getElementById("script").value; - trx.addinput(txid, index, script); + var scriptPubKey = document.getElementById("scriptPubKey").value; + trx.addinput(txid, index, scriptPubKey); var address = document.getElementById("address1").value; var value = document.getElementById("value1").value; trx.addoutput(address, value);