From 3ebfef9f94ed7c5723efa02c1cea71af491e079e Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 24 Nov 2020 10:50:36 +0300 Subject: [PATCH] [#207] sdk/client: Fix signature verification in GetEACL method Extended ACL tables should be signed with RFC-6979 standard. Fix Client .GetEACL implementation to verify eACL signature with SignRFC6979 option. Signed-off-by: Leonard Lyubich --- pkg/client/container.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/client/container.go b/pkg/client/container.go index 0c90d9d..a09107e 100644 --- a/pkg/client/container.go +++ b/pkg/client/container.go @@ -367,6 +367,7 @@ func (c Client) getEACLV2(ctx context.Context, id *container.ID, opts ...CallOpt return s.GetKey(), s.GetSign() }, + signature.SignWithRFC6979(), ); err != nil { return nil, errors.Wrap(err, "incorrect signature") }