diff options
author | Yigit Sever | 2021-04-16 15:29:29 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-16 15:29:29 +0300 |
commit | c3dcdb8c05468192df1395c5904c61b95efccf92 (patch) | |
tree | 53cf1169d335d3ebc93e35761ef086b54c9d2264 /site/content | |
parent | 95bb7f327b26b2e16cf9534fed417f496ad87d5e (diff) | |
parent | db807f1211870eb7ed48a2ad8b86f995734cfc0c (diff) | |
download | gradecoin-c3dcdb8c05468192df1395c5904c61b95efccf92.tar.gz gradecoin-c3dcdb8c05468192df1395c5904c61b95efccf92.tar.bz2 gradecoin-c3dcdb8c05468192df1395c5904c61b95efccf92.zip |
Merge remote-tracking branch 'origin/main'
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. | ||