aboutsummaryrefslogtreecommitdiffstats
path: root/site/public/transaction-docs
diff options
context:
space:
mode:
authorYigit Sever2021-04-18 21:53:17 +0300
committerYigit Sever2021-04-18 21:53:17 +0300
commit7e16965b37a1b125994fa85b97924f0ed4ea48ad (patch)
tree78a99d388d29605927927003f5101a6e7e3a33af /site/public/transaction-docs
parenta9dbfe9a2a11f9614e9618d8d2895eb1ca33db7f (diff)
downloadgradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.tar.gz
gradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.tar.bz2
gradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.zip
Transaction hashing should be easier
Diffstat (limited to 'site/public/transaction-docs')
-rw-r--r--site/public/transaction-docs/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/site/public/transaction-docs/index.html b/site/public/transaction-docs/index.html
index 4f8ef9c..593bcfe 100644
--- a/site/public/transaction-docs/index.html
+++ b/site/public/transaction-docs/index.html
@@ -126,7 +126,11 @@ target: Fingerprint
126amount: unsigned 16 bit integer 126amount: unsigned 16 bit integer
127timestamp: ISO 8601 <date>T<time> 127timestamp: ISO 8601 <date>T<time>
128</span></code></pre><h1 id="hash">Hash</h1> 128</span></code></pre><h1 id="hash">Hash</h1>
129<p><code>tha</code> field in <a href="https://gradecoin.xyz/jwt/">jwt documentation</a> in fact stands for &quot;The Hash&quot;, in the case of a post request for a transaction, you need the Md5 hash of the serialized JSON representation of transaction.</p> 129<p><code>tha</code> field in <a href="https://gradecoin.xyz/jwt/">jwt documentation</a> in fact stands for &quot;The Hash&quot;, in the case of a post request for a transaction, you need the Md5 hash of the serialized JSON representation of transaction. The resulting JSON string should look something like;</p>
130<pre style="background-color:#ffffff;">
131<code><span style="color:#545052;">{&quot;by&quot;:&quot;foo&quot;,&quot;source&quot;:&quot;bar&quot;,&quot;target&quot;:&quot;baz&quot;,&quot;amount&quot;:2,&quot;timestamp&quot;:&quot;2021-04-18T21:49:00&quot;}
132</span></code></pre>
133<p>Or; without any whitespace, separated with <code>:</code> and <code>,</code>.</p>
130<h1 id="bank">Bank</h1> 134<h1 id="bank">Bank</h1>
131<p>There is a <code>bank</code> account with Fingerprint <code>31415926535897932384626433832795028841971693993751058209749445923</code></p> 135<p>There is a <code>bank</code> account with Fingerprint <code>31415926535897932384626433832795028841971693993751058209749445923</code></p>
132<blockquote class="tidbit"> 136<blockquote class="tidbit">