Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/william1nguyen/meowcoin
https://github.com/william1nguyen/meowcoin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/william1nguyen/meowcoin
- Owner: william1nguyen
- Created: 2023-12-03T03:38:23.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T09:28:37.000Z (about 1 year ago)
- Last Synced: 2024-08-01T20:45:51.767Z (5 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### HOW TO CREATE A CRYTOCURRENCY
### Transaction
- Basic concept
- **Transaction** include*Properties*
* fromAddress
* toAddress
* amount### Block
- **Block** is a basic node that store information.
- A **block** contain*Properties*
* timestamp
* transactions (a list of transactions)
* previousHash (A **block** will store **previous block hash code**).---
*All Methods*- calculateHash()
- mineBlock(difficulty)### Blockchain
- **Blockchain** is a chain of multiple blocks.
- In this project, **Blockchain** contain*Properties*
* chain (list of blocks, default is `genesisBlock`).
* difficulty (difficulty is level of security added for each mining turn. e.x. start with "000").
* pendingTransactions
* miningReward (use for rewarding for each **mined block**).---
*All Methods*- createGenesisBlock()
- getLastestBlock()
- minePendingTransactions(miningRewaredAddress)
- createTransaction(transaction)
- getBalanceOfAddress(address)
- isChainValid()