[#1209] Upgrade NeoFS SDK Go
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
09db5e387d
commit
dd6d7d2d10
3 changed files with 7 additions and 15 deletions
|
@ -405,15 +405,7 @@ func (s *morphEACLFetcher) GetEACL(cid *cid.ID) (*eaclSDK.Table, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
sig := table.Signature()
|
||||
|
||||
if err := signature.VerifyDataWithSource(
|
||||
(*signedEACLTable)(table),
|
||||
func() ([]byte, []byte) {
|
||||
return sig.Key(), sig.Sign()
|
||||
},
|
||||
signature.SignWithRFC6979(),
|
||||
); err != nil {
|
||||
if err := signature.VerifyData((*signedEACLTable)(table), table.Signature(), signature.SignWithRFC6979()); err != nil {
|
||||
return nil, fmt.Errorf("incorrect signature: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue