package main import ( "crypto/sha256" "fmt" "golang.org/x/crypto/ripemd160" ) func hash160(b []byte) []byte { s := sha256.Sum256(b) h := ripemd160.New() h.Write(s[:]) return h.Sum(nil) } func main() { fmt.Printf("%x\n", hash160(nil)) }