|
|
@ -2,8 +2,6 @@ package crypto |
|
|
|
|
|
|
|
import ( |
|
|
|
"crypto/sha256" |
|
|
|
|
|
|
|
"golang.org/x/crypto/ripemd160" |
|
|
|
) |
|
|
|
|
|
|
|
func Sha256(bytes []byte) []byte { |
|
|
@ -11,9 +9,3 @@ func Sha256(bytes []byte) []byte { |
|
|
|
hasher.Write(bytes) |
|
|
|
return hasher.Sum(nil) |
|
|
|
} |
|
|
|
|
|
|
|
func Ripemd160(bytes []byte) []byte { |
|
|
|
hasher := ripemd160.New() |
|
|
|
hasher.Write(bytes) |
|
|
|
return hasher.Sum(nil) |
|
|
|
} |