默克尔
通过自己的作品, ,
用法
package main
import (
"crypto/sha256"
"log"
"os"
"github.com/wilfreddenton/merkle"
)
func main() {
// create a hash function
// it's ok to resuse this in merkle calls because it will be reset after use
h := sha256.New()
// create an io.Reader
f, err := os.Open("main.go"
1