aboutsummaryrefslogtreecommitdiffstats
path: root/key/encoding.go
blob: 11abdd61721bf0cff01c5014ee4e959ececba5d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
package key

import "encoding/hex"

func encode(key []byte) []byte {
	buf := make([]byte, hex.EncodedLen(len(key)))
	hex.Encode(buf, key)
	return buf
}