---
Language : **PYTHON**
Library : **FLASK**
Data form : **JSON**
---
This is not for project, but for the own personal study, the better understanding how blockchain work in simple way. Thus, please just refer to it as one of many sample materials.
Run bash window on the target folder and type in 'python server.py'. Then the first block, index 1, will be automatically generated if there is no stored history file named chain.json.
regarding chain.json file, there's no chain.json at the beginning. it is generated only if you like to. (I prepare 'write' menu on webpage)
When the 'chain.json', a written history file, exists, the block history will be restored autonomously. To avoid at first, I changed the file name to 'chain_old.json', which has the several depth of block history. you can also refer to it how block is constructed.
'http:https://localhost:5000' in browser
In block_class, there're 3 json files.
- blcok.json - the first intention, but too many hashes
- chains_old.json - already described on the top (ready-made history file.)
- genesis.json - Ethereum genesis block format, just refer to it
{ "sender": "0", "recipient": "17460cdf96bc403ca792bf08a7f87d4d", "amount": 100 }
This is not exact as it can be, but just alludes coinbase transaction. Because it is compensation for mining, sender is nobody, recipient is randomly generated node ID and amount is set as 100, form of variable for mining reward.
As a beginner trying to bite a little dent on learning the blockchain technology, other constructive opinoins are always welcomed and let's make it together! ๐
- ๋ธ๋ก์ฒด์ธ ๊ตฌํ (๋ธ๋ก์์ฑ, ํธ๋์ญ์ , ์์ ์ฆ๋ช , ๋ง์ด๋) - https://goo.gl/M6XU5v
- ํ์ด์ฌ์ผ๋ก ๋ธ๋ก์ฒด์ธ ๊ฐ๋ฐ ( ์์ง Part1๋ฐ์ ์์) : https://goo.gl/V2owrp
- 0_README_FIRST : please read this first.
- This is originally written by [iwanhae], but the server is kind of unstable
- I quote all of contents from above, please refer to this Wiki for better understanding about bit-coin mechanism.