mirror of https://github.com/status-im/go-waku.git
12 lines
182 B
Go
12 lines
182 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"encoding/hex"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func DecodeHexString(input string) ([]byte, error) {
|
||
|
input = strings.TrimPrefix(input, "0x")
|
||
|
return hex.DecodeString(input)
|
||
|
}
|