prepare to rename neofs-proto to neofs-api

This commit is contained in:
Evgeniy Kulikov 2020-01-30 16:32:50 +03:00
parent b42537f8d8
commit 53af48372f
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
70 changed files with 565 additions and 563 deletions

View file

@ -5,10 +5,10 @@ import (
"encoding/binary"
"sync"
"github.com/nspcc-dev/neofs-api/chain"
"github.com/nspcc-dev/neofs-api/internal"
"github.com/nspcc-dev/neofs-api/refs"
crypto "github.com/nspcc-dev/neofs-crypto"
"github.com/nspcc-dev/neofs-proto/chain"
"github.com/nspcc-dev/neofs-proto/internal"
"github.com/nspcc-dev/neofs-proto/refs"
"github.com/pkg/errors"
)
@ -113,7 +113,7 @@ func (m *Token) Sign(key *ecdsa.PrivateKey) error {
}
// SetPublicKeys sets owner's public keys to the token
func (m *Token) SetPublicKeys(keys... *ecdsa.PublicKey) {
func (m *Token) SetPublicKeys(keys ...*ecdsa.PublicKey) {
m.PublicKeys = m.PublicKeys[:0]
for i := range keys {
m.PublicKeys = append(m.PublicKeys, crypto.MarshalPublicKey(keys[i]))