go實現區塊鏈[2]-整合默克爾樹+POW
阿新 • • 發佈:2018-12-20
新增merkleRoot
merkleTree.go
1 |
package main |
根據交易建立merkleROOT
1 |
|
測試merkle
1 |
|
增加挖礦邏輯
proofofwork.go:
1 |
package main |
測試:
1 |
func TestPow(){ |
merkleTree.go
1 |
package main |
1 |
|
1 |
|
proofofwork.go:
1 |
package main |
1 |
func TestPow(){ |