aboutsummaryrefslogtreecommitdiffstats
path: root/common/bytes.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-09 16:59:37 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-09 16:59:37 +0800
commitef393da9334adcf99187c0825df025596ae41fb3 (patch)
tree5c9074d00cb774d3b739fe735d3e73636b69d12f /common/bytes.go
parentb3a3fdf9a447bd2b3f862380d87c675138da78e7 (diff)
downloadgo-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar.gz
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar.bz2
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar.lz
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar.xz
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.tar.zst
go-tangerine-ef393da9334adcf99187c0825df025596ae41fb3.zip
removed utility function and implemented hex conversation in crypto functions
Diffstat (limited to 'common/bytes.go')
-rw-r--r--common/bytes.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/bytes.go b/common/bytes.go
index ba180ac94..5bdacd810 100644
--- a/common/bytes.go
+++ b/common/bytes.go
@@ -147,18 +147,6 @@ func Hex2Bytes(str string) []byte {
return h
}
-func HexBytes2Bytes(d []byte) []byte {
- r := make([]byte, hex.DecodedLen(len(d)))
- hex.Decode(r, d)
- return r
-}
-
-func Bytes2HexBytes(d []byte) []byte {
- r := make([]byte, hex.EncodedLen(len(d)))
- hex.Encode(r, d)
- return r
-}
-
func StringToByteFunc(str string, cb func(str string) []byte) (ret []byte) {
if len(str) > 1 && str[0:2] == "0x" && !strings.Contains(str, "\n") {
ret = Hex2Bytes(str[2:])