mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-23 11:57:17 +00:00
Added hex method
This commit is contained in:
parent
bb3e28310e
commit
ba95849097
@ -58,3 +58,7 @@ func MatchingNibbleLength(a, b []int) int {
|
||||
func Hex(d []byte) string {
|
||||
return hex.EncodeToString(d)
|
||||
}
|
||||
func ToHex(str string) []byte {
|
||||
h, _ := hex.DecodeString(str)
|
||||
return h
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user