[#88] object/eacl: Use String() methods to calculate ID values

Replace hex encoding of IDs with String() call (base58) in eACL processing.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-21 18:49:38 +03:00 committed by Alex Vanin
parent 5318abcf38
commit 2541ed4b8f

View file

@ -1,7 +1,6 @@
package v2
import (
"encoding/hex"
"strconv"
"github.com/nspcc-dev/neofs-api-go/pkg/container"
@ -23,18 +22,16 @@ func (s *sysObjHdr) GetValue() string {
return s.v
}
// TODO: replace value conversions to neofs-api-go
func idValue(id *objectSDK.ID) string {
return hex.EncodeToString(id.ToV2().GetValue())
return id.String()
}
func cidValue(id *container.ID) string {
return hex.EncodeToString(id.ToV2().GetValue())
return id.String()
}
func ownerIDValue(id *owner.ID) string {
return hex.EncodeToString(id.ToV2().GetValue())
return id.String()
}
func u64Value(v uint64) string {