main.go
TEXT FILE245 B · Public source code for developers, search crawlers and AI agents
1package main
2
3import (
4 "crypto/sha256"
5 "fmt"
6 "golang.org/x/crypto/ripemd160"
7)
8
9func hash160(b []byte) []byte {
10 s := sha256.Sum256(b)
11 h := ripemd160.New()
12 h.Write(s[:])
13 return h.Sum(nil)
14}
15func main() { fmt.Printf("%x\n", hash160(nil)) }Read-only source · Select a line number to link directly · Raw download above
