diff options
author | Yigit Sever | 2021-04-16 15:56:07 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-16 15:56:07 +0300 |
commit | 9992e12945da9b9b4aa68072a8017c6525b60da3 (patch) | |
tree | abc188bdd80257af1e34f4b35c8d72c076471157 /site/content/transaction_docs.md | |
parent | 4805d4006c697528285fadfcf1b52dc84f6d1069 (diff) | |
download | gradecoin-9992e12945da9b9b4aa68072a8017c6525b60da3.tar.gz gradecoin-9992e12945da9b9b4aa68072a8017c6525b60da3.tar.bz2 gradecoin-9992e12945da9b9b4aa68072a8017c6525b60da3.zip |
Add bank description
Diffstat (limited to 'site/content/transaction_docs.md')
-rw-r--r-- | site/content/transaction_docs.md | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/site/content/transaction_docs.md b/site/content/transaction_docs.md index cbdeaf4..4a6264b 100644 --- a/site/content/transaction_docs.md +++ b/site/content/transaction_docs.md | |||
@@ -15,7 +15,6 @@ A HTTP `GET` request to [/transaction](/transaction) endpoint will return the cu | |||
15 | 15 | ||
16 | A HTTP `POST` request with Authorization using JWT to [/transaction](/transactions) will allow you to propose your own transactions. | 16 | A HTTP `POST` request with Authorization using JWT to [/transaction](/transactions) will allow you to propose your own transactions. |
17 | 17 | ||
18 | |||
19 | # Fields | 18 | # Fields |
20 | ``` | 19 | ``` |
21 | by: Fingerprint | 20 | by: Fingerprint |
@@ -27,4 +26,22 @@ timestamp: ISO 8601 <date>T<time> | |||
27 | 26 | ||
28 | # Hash | 27 | # Hash |
29 | 28 | ||
30 | ```tha``` field in [jwt documentation](/jwt) 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. |
30 | |||
31 | # Bank | ||
32 | |||
33 | There is a `bank` account with Fingerprint `31415926535897932384626433832795028841971693993751058209749445923` | ||
34 | |||
35 | {% tidbit() %} | ||
36 | First 64 digits of Pi | ||
37 | {% end %} | ||
38 | |||
39 | This is the only account that will let you _withdraw_ from them. | ||
40 | |||
41 | ``` | ||
42 | by: this has to be your Fingerprint | ||
43 | source: this can be either you or the bank | ||
44 | target: this can be a valid fingerprint or yourself if source is the bank | ||
45 | ... | ||
46 | ``` | ||
47 | |||