Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from nspcc-dev/get-rid-of-proto-Message-from-M…
Browse files Browse the repository at this point in the history
…aintainable-and-VerifiableRequest

service: get rid of proto.Message in Maintainable/Verifiable requests
  • Loading branch information
im-kulikov authored Dec 5, 2019
2 parents 173f036 + 891ba27 commit 8acd4da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions service/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package service
import (
"crypto/ecdsa"

"github.com/gogo/protobuf/proto"
crypto "github.com/nspcc-dev/neofs-crypto"
"github.com/nspcc-dev/neofs-proto/internal"
"github.com/nspcc-dev/neofs-proto/refs"
Expand All @@ -13,7 +12,6 @@ import (
type (
// VerifiableRequest adds possibility to sign and verify request header.
VerifiableRequest interface {
proto.Message
Marshal() ([]byte, error)
AddSignature(*RequestVerificationHeader_Signature)
GetSignatures() []*RequestVerificationHeader_Signature
Expand All @@ -23,7 +21,6 @@ type (
// MaintainableRequest adds possibility to set and get (+validate)
// owner (client) public key from RequestVerificationHeader.
MaintainableRequest interface {
proto.Message
GetOwner() (*ecdsa.PublicKey, error)
SetOwner(*ecdsa.PublicKey, []byte)
GetLastPeer() (*ecdsa.PublicKey, error)
Expand Down

0 comments on commit 8acd4da

Please sign in to comment.