mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
436493350e
1. changes sentinel to use an http-like interface 2. moves hexutil, crypto/blake2b, metrics packages to erigon-lib
10 lines
192 B
Go
10 lines
192 B
Go
package common
|
|
|
|
import "encoding/hex"
|
|
|
|
// Hex2Bytes returns the bytes represented by the hexadecimal string str.
|
|
func Hex2Bytes(str string) []byte {
|
|
h, _ := hex.DecodeString(str)
|
|
return h
|
|
}
|