mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 06:20:16 -05:00
Release v0.1.0
This commit is contained in:
15
vendor/github.com/muun/libwallet/ripemd160.go
generated
vendored
Normal file
15
vendor/github.com/muun/libwallet/ripemd160.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package libwallet
|
||||
|
||||
import (
|
||||
hash "golang.org/x/crypto/ripemd160"
|
||||
)
|
||||
|
||||
func ripemd160(data []byte) []byte {
|
||||
hasher := hash.New()
|
||||
_, err := hasher.Write(data)
|
||||
if err != nil {
|
||||
panic("failed to hash")
|
||||
}
|
||||
|
||||
return hasher.Sum([]byte{})
|
||||
}
|
||||
Reference in New Issue
Block a user