Files
muun-recovery/libwallet/ripemd160.go
2025-05-13 17:49:44 -03:00

16 lines
306 B
Go
Executable File

package libwallet
import (
hash "golang.org/x/crypto/ripemd160" //lint:ignore SA1019 using deprecated hash function for compatibility
)
func ripemd160(data []byte) []byte {
hasher := hash.New()
_, err := hasher.Write(data)
if err != nil {
panic("failed to hash")
}
return hasher.Sum([]byte{})
}