[#216] blobovnicza: Change ID stringer

Replace hex encoding with slice to string conversion.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-30 03:18:06 +03:00 committed by Alex Vanin
parent 07e998d846
commit 35ccda13a8

View file

@ -1,9 +1,5 @@
package blobovnicza
import (
"encoding/hex"
)
// ID represents Blobovnicza identifier.
type ID []byte
@ -13,5 +9,5 @@ func NewIDFromBytes(v []byte) *ID {
}
func (id ID) String() string {
return hex.EncodeToString(id)
return string(id)
}