From 2541ed4b8f3795df2f710beb9eeeced78b66d74b Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 21 Oct 2020 18:49:38 +0300 Subject: [PATCH] [#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 --- pkg/services/object/acl/eacl/v2/object.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/services/object/acl/eacl/v2/object.go b/pkg/services/object/acl/eacl/v2/object.go index e352fb0b6..55f775ae1 100644 --- a/pkg/services/object/acl/eacl/v2/object.go +++ b/pkg/services/object/acl/eacl/v2/object.go @@ -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 {