From fab0654942bd610c99999a6d193e0630d0cd6f98 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 25 Apr 2021 23:45:22 +0300 Subject: Moving to nicenet --- content/_index.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'content/_index.md') diff --git a/content/_index.md b/content/_index.md index d0be673..3522122 100644 --- a/content/_index.md +++ b/content/_index.md @@ -4,7 +4,6 @@ sort_by = "weight" +++ # Welcome to Gradecoin! - Blockchains are incredibly simple yet can appear very complicated, we will see how they work and practice programming _production_ cryptography code. This server is the sandbox for the PA1, it's currently running the Gradecoin application. Gradecoin is the faux currency we will use to simulate a blockchain network. At the end of the simulation, the amount of Gradecoin you hold will be your PA1 grade. @@ -17,7 +16,7 @@ Blocks need to be _mined_ beforehand using Proof-of-work, or brute force. Gradecoin offers 3 endpoints at [/register](/register), [/block](/block) and [/transaction](/transaction). You can only send GET requests to /block and /transaction without authorization. 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. -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. +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. > 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. @@ -25,7 +24,8 @@ You might ask, > But if nobody has any Gradecoin then how do we have transactions? -There is a bank! Their public key is `31415926535897932384626433832795028841971693993751058209749445923` and they have some amount of Gradecoin preloaded. It's also the only account that you can send transactions requests _to_ yourself. +You get rewarded for your hard work during the authentication with some Gradecoin to start with! +Then you can earn block rewards by proposing blocks, create some Gradecoins by generating traffic on the system, or transact with our new highly trained AI bots! # Coinbase The first transactions of a block is called the `coinbase`. They are the **author** of the block proposal and if the block is accepted then they get compensated for their efforts with some Gradecoin. @@ -39,6 +39,7 @@ Gradecoin uses 2048 bit RSA keypairs. - Download `Gradecoin`'s Public Key from [Moodle](https://odtuclass.metu.edu.tr/my/) - Encrypt your [JSON](https://www.json.org/json-en.html) wrapped `Public Key`, `Student ID` and one time `passwd` using Gradecoin's Public Key - Your public key is now in our database and can be used to sign your JWT's during requests +- **Don't forget your Public Key** - For more information, check the [register](@/register_docs.md) page ## /transaction @@ -55,10 +56,10 @@ Gradecoin uses 2048 bit RSA keypairs. - Fetch the last accepted `Block` with a GET request - For more information, check our [block](@/block_docs.md) page - `Authorization`: The request header should have Bearer JWT.Token signed with Student Public Key +> `Authorization`: The request header should have Bearer JWT.Token signed with Student Public Key ## /user -- Meant to be used in the browser, you can see the current list of users and their balance here +- Looking for people to conduct business with? Everyone is listed here! 🤖👋 are bots who are very eager to transact with you. I've trained them personally. # Questions ## This all sound complicated! @@ -87,12 +88,13 @@ At the end of the _simulation_, your Gradecoin balance will be your grade. I wil - perl - rust - python +- dart/typescript - random assortment of bash scripts If your favourite programming language is missing please let me know 🤷? ## Can my friends play? -Sadly, no. Student's who are enrolled to the class will receive one-time-passwords for authentication. +Probably not at this point. I've allowed a couple of people during the testnet phase but don't intend to any more. ## How and or Why? - [Built](https://xkcd.com/2314/), [with](https://lofi.cafe/) [Rust](https://xkcd.com/2418/) -- cgit v1.2.3-70-g09d2