Skip to content

basic-blockchain is a simple cryptocurrency blockchain implementation that mimics the principles of Bitcoin.

License

Notifications You must be signed in to change notification settings

WayneChang65/basic-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-blockchain

basic-blockchain 是一個模彷比特幣原理的簡單虛擬貨幣區塊鍊實作。

basic-blockchain is a simple cryptocurrency blockchain implementation that mimics the principles of Bitcoin.

前言(Overview)

自己對區塊鍊有興趣,透過實作較能清楚了解區塊鍊的內容。參考一位youtuber的影片並且加上自己的想法後,寫成這個簡單的範例。這範例中清楚說明有關區塊鍊的幾項內容,如區塊鍊的架構、挖礦、交易、簽章認證等。另外,自己在程式中也加註中文的詳細註解,供有興趣的人能更快速了解程式內容。

I am interested in the blockchain, and I can understand the content of the blockchain more clearly through the implementation. After referring to a youtuber's video and adding my own thoughts, I wrote this simple example. This example clearly illustrates several aspects of the blockchain, such as the structure of the blockchain, mining, transactions, signature authentication, etc. In addition, I also add detailed comments in Chinese in the program, so that those who are interested can understand the content of the program more quickly.

如何跑範例程式? (How to run the example ?)

  • 從Github下載basic-blockchain專案程式碼。
    Clone basic-blockchain from GitHub
git clone https://github.com/WayneChang65/basic-blockchain.git
  • 進入basic-blockchain專案目錄
    Get into basic-blockchain directory
cd basic-blockchain
  • 下載跑範例程式所需要的環境組件
    Install dependencies in the cloned basic-blockchain folder
npm ci
  • 透過 npm 直接使用以下指令。(實際範例程式在 ./main.js)
    Run it with npm. (the demo example is in ./main.js)
npm run start

參考(Reference)

Youtuber:Simply Explained

About

basic-blockchain is a simple cryptocurrency blockchain implementation that mimics the principles of Bitcoin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published