diff options
author | alpaylan | 2021-04-16 15:12:19 +0300 |
---|---|---|
committer | alpaylan | 2021-04-16 15:12:19 +0300 |
commit | 818b532230a9ffcb4d2b1705adbb7e9dd9b12457 (patch) | |
tree | 1621b77684315aed297e667f40696c70168ec39f /site/content | |
parent | 45d98cdbf95580ea7e21d17a0518993fe23914a0 (diff) | |
download | gradecoin-818b532230a9ffcb4d2b1705adbb7e9dd9b12457.tar.gz gradecoin-818b532230a9ffcb4d2b1705adbb7e9dd9b12457.tar.bz2 gradecoin-818b532230a9ffcb4d2b1705adbb7e9dd9b12457.zip |
hash added to docs.
Diffstat (limited to 'site/content')
-rw-r--r-- | site/content/_index.md | 2 | ||||
-rw-r--r-- | site/content/block_docs.md | 5 | ||||
-rw-r--r-- | site/content/transaction_docs.md | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/site/content/_index.md b/site/content/_index.md index 4ad0544..66d270f 100644 --- a/site/content/_index.md +++ b/site/content/_index.md | |||
@@ -17,7 +17,7 @@ Blocks need to be _mined_ beforehand using Proof-of-work, or brute force. | |||
17 | Gradecoin offers 3 endpoints at [/register](/register), [/block](/block) and [/transaction](/transaction). You can only send GET requests to /block and /transaction without authorization. | 17 | Gradecoin offers 3 endpoints at [/register](/register), [/block](/block) and [/transaction](/transaction). You can only send GET requests to /block and /transaction without authorization. |
18 | The server is programmed in [RESTful](https://www.service-architecture.com/articles/web-services/representational_state_transfer_rest.html) architecture, there are no `DELETE`, `PUT` or `UPDATE` operations, though. | 18 | The server is programmed in [RESTful](https://www.service-architecture.com/articles/web-services/representational_state_transfer_rest.html) architecture, there are no `DELETE`, `PUT` or `UPDATE` operations, though. |
19 | 19 | ||
20 | Gradecoin uses a Proof-of-work block accepting mechanism. It uses single round [Blake2s](https://www.blake2.net/) hashing which produces 256-bit (64 hexadecimal characters) output. The [target](https://wiki.bitcoinsv.io/index.php/Target) hash is _24 bits_ or _6 hexadecimal characters_ of 0. During testing, I could mine a block on average around 2-7 minutes. | 20 | Gradecoin uses a Proof-of-work block accepting mechanism. It uses single round [Blake2s](https://www.blake2.net/) hashing which produces 256-bit (64 hexadecimal characters) output. The [target](https://wiki.bitcoinsv.io/index.php/Target) hash is _24 bits_ or _6 hexadecimal characters_ of 0. During testing, I could mine a block on average around 4-6 minutes. |
21 | 21 | ||
22 | > We're expecting you to use existing tools and implementations. Standards are hard. [Don't roll your own crypto](https://www.reddit.com/r/crypto/comments/2coqsy/dont_roll_your_own/). Feel free to ask questions. Collaborate. | 22 | > We're expecting you to use existing tools and implementations. Standards are hard. [Don't roll your own crypto](https://www.reddit.com/r/crypto/comments/2coqsy/dont_roll_your_own/). Feel free to ask questions. Collaborate. |
23 | 23 | ||
diff --git a/site/content/block_docs.md b/site/content/block_docs.md index c1d61e9..bb1b44c 100644 --- a/site/content/block_docs.md +++ b/site/content/block_docs.md | |||
@@ -27,4 +27,9 @@ timestamp: ISO 8601 <date>T<time> | |||
27 | hash: String | 27 | hash: String |
28 | ``` | 28 | ``` |
29 | 29 | ||
30 | # Hash | ||
31 | |||
32 | ```tha``` field in [jwt documentation](/jwt) in fact stands for "The Hash", in the case of a post request for a block, you need to use hash field of the block. | ||
33 | |||
34 | |||
30 | [ISO 8601 Reference](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) | 35 | [ISO 8601 Reference](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) |
diff --git a/site/content/transaction_docs.md b/site/content/transaction_docs.md index 820c35f..196a07c 100644 --- a/site/content/transaction_docs.md +++ b/site/content/transaction_docs.md | |||
@@ -24,3 +24,7 @@ target: Fingerprint | |||
24 | amount: unsigned 16 bit integer | 24 | amount: unsigned 16 bit integer |
25 | timestamp: ISO 8601 <date>T<time> | 25 | timestamp: ISO 8601 <date>T<time> |
26 | ``` | 26 | ``` |
27 | |||
28 | # Hash | ||
29 | |||
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 hash of the serialized JSON representation of transaction. | ||