[#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 <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-24 10:50:36 +03:00 committed by Leonard Lyubich
parent 5ee500bb43
commit 3ebfef9f94

View file

@ -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")
}