[#1377] oid, cid: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f65898a354
commit
f15e6e888f
118 changed files with 1455 additions and 886 deletions
|
@ -1,6 +1,7 @@
|
|||
package container
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
"fmt"
|
||||
|
||||
core "github.com/nspcc-dev/neofs-node/pkg/core/container"
|
||||
|
@ -22,9 +23,12 @@ func Delete(c *Client, witness core.RemovalWitness) error {
|
|||
return fmt.Errorf("could not marshal session token: %w", err)
|
||||
}
|
||||
|
||||
binCnr := make([]byte, sha256.Size)
|
||||
id.Encode(binCnr)
|
||||
|
||||
return c.Delete(
|
||||
DeletePrm{
|
||||
cid: id.ToV2().GetValue(),
|
||||
cid: binCnr,
|
||||
signature: witness.Signature(),
|
||||
token: binToken,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue