aboutsummaryrefslogtreecommitdiffstats
path: root/site/content
diff options
context:
space:
mode:
authoralpaylan2021-04-16 15:12:19 +0300
committeralpaylan2021-04-16 15:12:19 +0300
commitcb6bbf20054ae2d4f26c0eb5aaa301a9fc3c83b2 (patch)
tree6fc3553c45a74eafebc10ec91468ae9ea9fc69b0 /site/content
parentabe7d7e11638b5496fa89da73823701dc0f6e5d4 (diff)
downloadgradecoin-cb6bbf20054ae2d4f26c0eb5aaa301a9fc3c83b2.tar.gz
gradecoin-cb6bbf20054ae2d4f26c0eb5aaa301a9fc3c83b2.tar.bz2
gradecoin-cb6bbf20054ae2d4f26c0eb5aaa301a9fc3c83b2.zip
hash added to docs.
Diffstat (limited to 'site/content')
-rw-r--r--site/content/_index.md2
-rw-r--r--site/content/block_docs.md5
-rw-r--r--site/content/transaction_docs.md4
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.
17Gradecoin offers 3 endpoints at [/register](/register), [/block](/block) and [/transaction](/transaction). You can only send GET requests to /block and /transaction without authorization. 17Gradecoin offers 3 endpoints at [/register](/register), [/block](/block) and [/transaction](/transaction). You can only send GET requests to /block and /transaction without authorization.
18The 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. 18The 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
20Gradecoin 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. 20Gradecoin 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>
27hash: String 27hash: 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
24amount: unsigned 16 bit integer 24amount: unsigned 16 bit integer
25timestamp: ISO 8601 <date>T<time> 25timestamp: 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.