aboutsummaryrefslogtreecommitdiffstats
path: root/site/content/transaction_docs.md
diff options
context:
space:
mode:
authorYigit Sever2021-04-16 15:56:07 +0300
committerYigit Sever2021-04-16 15:56:07 +0300
commit8406b4029dacc006166267be8c74d5ef3d3c25b9 (patch)
treef04dd07b705ab1c21fa126ead44414adfe45db99 /site/content/transaction_docs.md
parent242914808a5a69601f06b9a00ffa43262a623c9e (diff)
downloadgradecoin-8406b4029dacc006166267be8c74d5ef3d3c25b9.tar.gz
gradecoin-8406b4029dacc006166267be8c74d5ef3d3c25b9.tar.bz2
gradecoin-8406b4029dacc006166267be8c74d5ef3d3c25b9.zip
Add bank description
Diffstat (limited to 'site/content/transaction_docs.md')
-rw-r--r--site/content/transaction_docs.md21
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
16A HTTP `POST` request with Authorization using JWT to [/transaction](/transactions) will allow you to propose your own transactions. 16A 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```
21by: Fingerprint 20by: 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
33There is a `bank` account with Fingerprint `31415926535897932384626433832795028841971693993751058209749445923`
34
35{% tidbit() %}
36First 64 digits of Pi
37{% end %}
38
39This is the only account that will let you _withdraw_ from them.
40
41```
42by: this has to be your Fingerprint
43source: this can be either you or the bank
44target: this can be a valid fingerprint or yourself if source is the bank
45...
46```
47