Skip to content

GDGSongDo/blockchain_study_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 1 column 12
---
Language : **PYTHON**
Library : **FLASK**
Data form : **JSON**
---



0. INTRO. ๐Ÿ‘‹

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.



1. HOW TO RUN

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.

bash_run image



2. HOW IT SHOWS

'http:https://localhost:5000' in browser

main_screen



3. ABOUT JSON

In block_class, there're 3 json files.

  1. blcok.json - the first intention, but too many hashes
  2. chains_old.json - already described on the top (ready-made history file.)
  3. 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.

dir_structure



4. OTHERS

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! ๐Ÿ˜



5. REFERENCES

  1. ๋ธ”๋ก์ฒด์ธ ๊ตฌํ˜„ (๋ธ”๋ก์ƒ์„ฑ, ํŠธ๋žœ์žญ์…˜, ์ž‘์—…์ฆ๋ช…, ๋งˆ์ด๋‹) - https://goo.gl/M6XU5v
  2. ํŒŒ์ด์ฌ์œผ๋กœ ๋ธ”๋ก์ฒด์ธ ๊ฐœ๋ฐœ ( ์•„์ง Part1๋ฐ–์— ์—†์Œ) : https://goo.gl/V2owrp



6. BitCoin Wiki

  1. 0_README_FIRST : please read this first.
  2. This is originally written by [iwanhae], but the server is kind of unstable
  3. I quote all of contents from above, please refer to this Wiki for better understanding about bit-coin mechanism.

content_wiki

About

Not for the project, But for a studying materials, ๐Ÿ˜€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published