diff options
author | Yigit Sever | 2021-04-18 21:53:17 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-18 21:53:17 +0300 |
commit | 4c855e5bb82cdc470d8dd915121a2e033324d5b1 (patch) | |
tree | d8700627e6618079aa8fa9486c9d99fbfd1e0f9a /site/public/transaction-docs/index.html | |
parent | 5f066ada307881e08e61ee9a94a9fc65440bc64f (diff) | |
download | gradecoin-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.html | 6 |
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 | |||
126 | amount: unsigned 16 bit integer | 126 | amount: unsigned 16 bit integer |
127 | timestamp: ISO 8601 <date>T<time> | 127 | timestamp: 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 "The Hash", 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 "The Hash", 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;">{"by":"foo","source":"bar","target":"baz","amount":2,"timestamp":"2021-04-18T21:49:00"} | ||
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"> |