[#202] object/eacl: Fix algorithm for checking eACL table

Add SignWithRFC6979 option to signature verification function since eACL
table are signed by users with this option.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-02-03 10:10:25 +03:00 committed by Alex Vanin
parent ad348afcd6
commit f85e5f0238
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func (s *morphStorage) GetEACL(cid *container.ID) (*eacl.Table, error) {
func() ([]byte, []byte) {
return sig.Key(), sig.Sign()
},
signature.SignWithRFC6979(),
); err != nil {
return nil, errors.Wrap(err, "incorrect signature")
}