16 lines
307 B
Go
Raw Normal View History

2019-10-01 12:22:30 -03:00
package libwallet
import (
2019-12-16 17:59:11 -03:00
hash "golang.org/x/crypto/ripemd160" //lint:ignore SA1019 using deprecated hash function for compatibility
2019-10-01 12:22:30 -03:00
)
func ripemd160(data []byte) []byte {
hasher := hash.New()
_, err := hasher.Write(data)
if err != nil {
panic("failed to hash")
}
return hasher.Sum([]byte{})
}