From 81ebd267c89011ca65cd5cfe382e10fabd9017ac Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 19 Apr 2021 18:21:06 +0300 Subject: Moving site to separate repo --- site/public/block-docs/index.html | 190 -------------------------------------- 1 file changed, 190 deletions(-) delete mode 100644 site/public/block-docs/index.html (limited to 'site/public/block-docs/index.html') diff --git a/site/public/block-docs/index.html b/site/public/block-docs/index.html deleted file mode 100644 index 8edc5a0..0000000 --- a/site/public/block-docs/index.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - Blocks | Gradecoin - - - - - - - - - - - - - - - -
- - - - - - - - -
- - -
- - - - - -
-
- -
- Requests -
- - -
- - GET -
- -
- - POST -
- - - -
- Fields -
- - -
- Mining -
- - -
- Hash -
- - -
-
- - - -
- -
Block Documentation
-

A block that was proposed to commit Transactions in transaction_list to the -ledger with a nonce that made hash valid; 6 zeroes at the left hand side of the -hash (24 bytes).

-

We are mining using blake2s algorithm, which produces 256 bit hashes. Hash/second is roughly 20x103 on my machine, a new block can be mined in around 4-6 minutes.

-

Requests

-

GET

-

A HTTP GET request to /block endpoint will return the latest mined block.

-

POST

-

A HTTP POST request with Authorization using JWT will allow you to propose your own blocks.

-

Fields

-
-transaction_list: [array of Fingerprints]
-nonce: unsigned 32-bit integer
-timestamp: ISO 8601 <date>T<time>
-hash: String
-

Mining

-

The mining process for the hash involves;

- -

If the resulting hash is valid, then you can create a Block JSON object with the found nonce and hash.

-

Hash

-

tha field in jwt documentation 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.

-

ISO 8601 Reference

- - -
- - - -
- - - - - - - - -- cgit v1.2.3-70-g09d2