プロジェクト
概要
A basic implementation of Blockchain
ビジネス・金融計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルGoChain
A basic implementation of blockchain in go.
Building
$ cd cmd
$ go build -o gochain
Usage
Starting a node
You can start as many nodes as you want with the following command
./gochain -port=<port-number>
Endpoints
Requesting the Blockchain of a node
GET 127.0.0.1:8000/chain
Mining some coins
GET 127.0.0.1:8000/mine
Adding a new transaction
POST 127.0.0.1:8000/transactions/newBody: A transaction to be added
{ "sender": "sender-address-te33412uywq89234g", "recipient": "recipient-address-j3h45jk23hjk543gf", "amount": 1000 }
Register a new node in the network
Currently you must add each new node to each running node.
POST 127.0.0.1:8000/nodes/registerBody: A list of nodes to add
{ "nodes": ["http://127.0.0.1:8001", <more-nodes>] }
Resolving Blockchain differences in each node
GET 127.0.0.1:8000/nodes/resolve
関連プロジェクトを探す
読み込み中…