frostfs-api-go-pogpp/pkg/refs/container_id.go
Alex Vanin 8c920d75a6 [#126] sdk: add reference types
This commits adds container id and neo 3 wallet id, that
is used as owner id for object and container. Version
is set out outside of refs packages since it store global
version of SDK.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:45:11 +03:00

15 lines
183 B
Go

package refs
import (
"crypto/sha256"
"github.com/mr-tron/base58"
)
type (
ContainerID [sha256.Size]byte
)
func (c ContainerID) String() string {
return base58.Encode(c[:])
}