forked from TrueCloudLab/frostfs-sdk-go
[#87] go.mod: remove neo-go dependency
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
d821f18b7d
commit
a2d342e928
20 changed files with 167 additions and 246 deletions
|
@ -2,9 +2,9 @@ package eacl
|
|||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"crypto/elliptic"
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||
v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -25,7 +25,8 @@ func TestTarget(t *testing.T) {
|
|||
require.Equal(t, v2acl.RoleSystem, v2.GetRole())
|
||||
require.Len(t, v2.GetKeys(), len(pubs))
|
||||
for i, key := range v2.GetKeys() {
|
||||
require.Equal(t, key, (*keys.PublicKey)(pubs[i]).Bytes())
|
||||
b := elliptic.MarshalCompressed(pubs[i].Curve, pubs[i].X, pubs[i].Y)
|
||||
require.Equal(t, key, b)
|
||||
}
|
||||
|
||||
newTarget := NewTargetFromV2(v2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue