mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 14:30:19 -05:00
Update project structure and build process
This commit is contained in:
15
libwallet/ripemd160.go
Executable file
15
libwallet/ripemd160.go
Executable file
@@ -0,0 +1,15 @@
|
||||
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{})
|
||||
}
|
||||
Reference in New Issue
Block a user