diff options
author | Yigit Sever | 2021-04-18 21:53:17 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-18 21:53:17 +0300 |
commit | 7e16965b37a1b125994fa85b97924f0ed4ea48ad (patch) | |
tree | 78a99d388d29605927927003f5101a6e7e3a33af /site/content | |
parent | a9dbfe9a2a11f9614e9618d8d2895eb1ca33db7f (diff) | |
download | gradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.tar.gz gradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.tar.bz2 gradecoin-7e16965b37a1b125994fa85b97924f0ed4ea48ad.zip |
Transaction hashing should be easier
Diffstat (limited to 'site/content')
-rw-r--r-- | site/content/transaction_docs.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/site/content/transaction_docs.md b/site/content/transaction_docs.md index 4a6264b..05c1534 100644 --- a/site/content/transaction_docs.md +++ b/site/content/transaction_docs.md | |||
@@ -26,7 +26,13 @@ timestamp: ISO 8601 <date>T<time> | |||
26 | 26 | ||
27 | # Hash | 27 | # Hash |
28 | 28 | ||
29 | `tha` field in [jwt documentation](@/JWT.md) 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. | 29 | `tha` field in [jwt documentation](@/JWT.md) 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; |
30 | |||
31 | ``` | ||
32 | {"by":"foo","source":"bar","target":"baz","amount":2,"timestamp":"2021-04-18T21:49:00"} | ||
33 | ``` | ||
34 | |||
35 | Or; without any whitespace, separated with `:` and `,`. | ||
30 | 36 | ||
31 | # Bank | 37 | # Bank |
32 | 38 | ||
@@ -44,4 +50,3 @@ source: this can be either you or the bank | |||
44 | target: this can be a valid fingerprint or yourself if source is the bank | 50 | target: this can be a valid fingerprint or yourself if source is the bank |
45 | ... | 51 | ... |
46 | ``` | 52 | ``` |
47 | |||