aboutsummaryrefslogtreecommitdiffstats
path: root/site/public/transaction-docs/index.html
diff options
context:
space:
mode:
authorYigit Sever2021-04-18 21:53:17 +0300
committerYigit Sever2021-04-18 21:53:17 +0300
commit4c855e5bb82cdc470d8dd915121a2e033324d5b1 (patch)
treed8700627e6618079aa8fa9486c9d99fbfd1e0f9a /site/public/transaction-docs/index.html
parent5f066ada307881e08e61ee9a94a9fc65440bc64f (diff)
downloadgradecoin-4c855e5bb82cdc470d8dd915121a2e033324d5b1.tar.gz
gradecoin-4c855e5bb82cdc470d8dd915121a2e033324d5b1.tar.bz2
gradecoin-4c855e5bb82cdc470d8dd915121a2e033324d5b1.zip
Transaction hashing should be easier
Diffstat (limited to 'site/public/transaction-docs/index.html')
-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">