From dd6d7d2d10666e7d881bc51e690de76a36fb4cda Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 2 Mar 2022 14:47:14 +0300 Subject: [PATCH] [#1209] Upgrade NeoFS SDK Go Signed-off-by: Leonard Lyubich --- cmd/neofs-node/object.go | 10 +--------- go.mod | 4 ++-- go.sum | Bin 93774 -> 93774 bytes 3 files changed, 3 insertions(+), 11 deletions(-) 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 60588c956eb9301faa4717e96602932adf0f30b2..a3f793d4943e0a7b4f5ab35a76ddc13cd6bd0a35 100644 GIT binary patch delta 271 zcmX?ihxObY)(xz^0fu@;x(0ei21Z5(#s)@)#wM1g2D&K*W~L^l#z`p#iRKC!hE^Fq zzGYb^-j*p@RZi*JA&IFj?t$U%rTH0E5oO6C8JPw}20p<)85x0ay|M delta 264 zcmX?ihxObY)(xz^Mn-xD3K@o072$;uRry6O*_PpMz9A*y0p`i&F>{ zA%>}@RfXAw<`t2X8@t3OO=O$=y@!t(sC)CmUI}JDLp=jMBLgE4GBvO;HZ(NVHAzcK zG)zo0OH4Gd09jEG84&DKQCjJ4ZtfINRT$=HY~mc2VV)Rdp|5Y4VHyyW<5%PsoL5lk zS`M*7JcNL$`sw+4x%nv|!}Y_%j13(FJ&MgDeL}K)(|xmiqslF!jP(P}lgzSxv;5M% Z!is|ulS~~aH*`r%J}{AcbHT)WcK~3@Rs8?}