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