35ccda13a8
Replace hex encoding with slice to string conversion. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
13 lines
236 B
Go
13 lines
236 B
Go
package blobovnicza
|
|
|
|
// ID represents Blobovnicza identifier.
|
|
type ID []byte
|
|
|
|
// NewIDFromBytes constructs ID from byte slice.
|
|
func NewIDFromBytes(v []byte) *ID {
|
|
return (*ID)(&v)
|
|
}
|
|
|
|
func (id ID) String() string {
|
|
return string(id)
|
|
}
|