diff options
| author | Yigit Sever | 2021-04-15 13:35:06 +0300 |
|---|---|---|
| committer | Yigit Sever | 2021-04-15 13:35:06 +0300 |
| commit | 77b99f7d3a8747f562f2b8f1e8df551aafea1b28 (patch) | |
| tree | 8c02f0fc3e463439f5d05653a3f1052caa2138ed /site/content/block_docs.md | |
| parent | cd6839a3c6596f5e4197c6696b95efbf0c76d2ca (diff) | |
| download | gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.tar.gz gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.tar.bz2 gradecoin-77b99f7d3a8747f562f2b8f1e8df551aafea1b28.zip | |
Remove lorems and inpsumses
Diffstat (limited to 'site/content/block_docs.md')
| -rw-r--r-- | site/content/block_docs.md | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/site/content/block_docs.md b/site/content/block_docs.md index 26803bd..4227f26 100644 --- a/site/content/block_docs.md +++ b/site/content/block_docs.md | |||
| @@ -4,8 +4,27 @@ description = "Block Documentation" | |||
| 4 | weight = 2 | 4 | weight = 2 |
| 5 | +++ | 5 | +++ |
| 6 | 6 | ||
| 7 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod | 7 | A block that was proposed to commit Transactions in `transaction_list` to the |
| 8 | tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At | 8 | ledger with a nonce that made `hash` valid; 6 zeroes at the left hand side of the |
| 9 | vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd | 9 | hash (24 bytes). |
| 10 | ubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. | ||
| 11 | 10 | ||
| 11 | We are _mining_ using [blake2s](https://www.blake2.net/) algorithm, which produces 256 bit hashes. Hash/second is roughly 20x10^3 on my machine, a new block can be mined in around 4-6 minutes. | ||
| 12 | |||
| 13 | # Requests | ||
| 14 | |||
| 15 | ## GET | ||
| 16 | A HTTP `GET` request to [/block](/block) endpoint will return the latest mined block. | ||
| 17 | |||
| 18 | ## POST | ||
| 19 | |||
| 20 | A HTTP `POST` request with Authorization using JWT will allow you to propose your own blocks. | ||
| 21 | |||
| 22 | # Fields | ||
| 23 | ``` | ||
| 24 | transaction_list: [array of Fingerprints] | ||
| 25 | nonce: unsigned 32-bit integer | ||
| 26 | timestamp: ISO 8601 <date>T<time> | ||
| 27 | hash: String | ||
| 28 | ``` | ||
| 29 | |||
| 30 | [ISO 8601 Reference](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) | ||
