func (t *Target) Keys() []ecdsa.PublicKey {
	keysPtr := TargetECDSAKeys(t)
	keys := make([]ecdsa.PublicKey, 0, len(keysPtr))
	for i := range keysPtr {
		if keysPtr[i] != nil {
			keys = append(keys, *keysPtr[i])
		}
	}
	return keys
}
Keys returns list of ECDSA public keys to identify target subject.
If some key has a different format, it is ignored.

Deprecated: use TargetECDSAKeys instead.
package eacl
import (
	"crypto/ecdsa"
	v2acl "github.com/nspcc-dev/neofs-api-go/v2/acl"
	crypto "github.com/nspcc-dev/neofs-crypto"
)
type Target struct {
	role Role
	keys [][]byte
}
func ecdsaKeysToPtrs(keys []ecdsa.PublicKey) []*ecdsa.PublicKey {
	keysPtr := make([]*ecdsa.PublicKey, len(keys))
	for i := range keys {
		keysPtr[i] = &keys[i]
	}
	return keysPtr
}
func (t *Target) SetKeys(keys ...ecdsa.PublicKey) {
	SetTargetECDSAKeys(t, ecdsaKeysToPtrs(keys)...)
}