A simple cryptocurrency
- Only Goofy can create new coins and it belongs to Goofy
- Whoever owns a coin can spend/pass it to other participants
- Goofy creates a coin
___________________________
| signed by PK(goofy) |
|___________________________|
| Createcoin[uniqueCoinID] |
|___________________________|
- if Goofy pass the coin to alice then,
___________________________
| signed by PK(goofy) |
|___________________________|
| Pay to PK(alice) : H()--|---+
|___________________________| |
|
|
_______________|
| ___________________________
+-->| signed by PK(goofy) |
|___________________________|
| Createcoin[uniqueCoinID] |
|___________________________|
- Similarly if Alice pass the coin to Bob then,
___________________________
| signed by PK(alice) |
|___________________________|
| Pay to PK(bob) : H()----|----+
|___________________________| |
|
|
__________________|
| ___________________________
+---->| signed by PK(goofy) |
|___________________________|
| Pay to PK(alice) : H()--|---+
|___________________________| |
|
|
___________________|
| ___________________________
+------>| signed by PK(goofy) |
|___________________________|
| Createcoin[uniqueCoinID] |
|___________________________|
-
Central authority
only Goofy can make coins
-
Double Spending attack
Participants can do double spending
Nihal Murmu - nihalmurmu
This project is licensed under the MIT License - see the LICENSE.md file for details