diff options
author | Yigit Sever | 2021-04-16 15:29:29 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-16 15:29:29 +0300 |
commit | 88fad465c273c2466f9cc282e90a515434d0717d (patch) | |
tree | c91af999cd25c5dfb08f818455f4a85a8ae50c07 /site/content | |
parent | 3bc1d6792317218f879ec82fcd87acd1c892f2d4 (diff) | |
parent | ea12fb6a65813339afbbe674605ac101e1f34ed7 (diff) | |
download | gradecoin-88fad465c273c2466f9cc282e90a515434d0717d.tar.gz gradecoin-88fad465c273c2466f9cc282e90a515434d0717d.tar.bz2 gradecoin-88fad465c273c2466f9cc282e90a515434d0717d.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. | ||