diff --git a/cmd/neofs-node/object.go b/cmd/neofs-node/object.go index 5464a0fee7..0afb9a8c67 100644 --- a/cmd/neofs-node/object.go +++ b/cmd/neofs-node/object.go @@ -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) } diff --git a/go.mod b/go.mod index d1659caa1e..d69d7dad11 100644 --- a/go.mod +++ b/go.mod @@ -14,9 +14,9 @@ require ( github.com/multiformats/go-multiaddr v0.4.0 github.com/nspcc-dev/hrw v1.0.9 github.com/nspcc-dev/neo-go v0.98.0 - github.com/nspcc-dev/neofs-api-go/v2 v2.12.0 + github.com/nspcc-dev/neofs-api-go/v2 v2.11.2-0.20220302134950-d065453bd0a7 github.com/nspcc-dev/neofs-contract v0.14.2 - github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.1.0.20220225083115-4fba1af6aa08 + github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.2 github.com/nspcc-dev/tzhash v1.5.2 github.com/panjf2000/ants/v2 v2.4.0 github.com/paulmach/orb v0.2.2 diff --git a/go.sum b/go.sum index 60588c956e..a3f793d494 100644 Binary files a/go.sum and b/go.sum differ