You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
244 B
Go
16 lines
244 B
Go
8 months ago
|
package starcrypto
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/crypto/ripemd160"
|
||
|
)
|
||
|
|
||
|
func RipeMd160(bstr []byte) []byte {
|
||
|
ripe := ripemd160.New()
|
||
|
ripe.Write(bstr)
|
||
|
return ripe.Sum(nil)
|
||
|
}
|
||
|
|
||
|
func RipeMd160Str(bstr []byte) string {
|
||
|
return String(RipeMd160(bstr))
|
||
|
}
|