ethereum_validator_accounts_v2

package
v1.0.0-alpha.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthKeymanager        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowKeymanager          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupKeymanager = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SignResponse_Status_name = map[int32]string{
	0: "UNKNOWN",
	1: "SUCCEEDED",
	2: "DENIED",
	3: "FAILED",
}
View Source
var SignResponse_Status_value = map[string]int32{
	"UNKNOWN":   0,
	"SUCCEEDED": 1,
	"DENIED":    2,
	"FAILED":    3,
}

Functions

func RegisterRemoteSignerServer

func RegisterRemoteSignerServer(s *grpc.Server, srv RemoteSignerServer)

Types

type ListPublicKeysResponse

type ListPublicKeysResponse struct {
	ValidatingPublicKeys [][]byte `protobuf:"bytes,2,rep,name=validating_public_keys,json=validatingPublicKeys,proto3" json:"validating_public_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListPublicKeysResponse) Descriptor

func (*ListPublicKeysResponse) Descriptor() ([]byte, []int)

func (*ListPublicKeysResponse) GetValidatingPublicKeys

func (m *ListPublicKeysResponse) GetValidatingPublicKeys() [][]byte

func (*ListPublicKeysResponse) Marshal

func (m *ListPublicKeysResponse) Marshal() (dAtA []byte, err error)

func (*ListPublicKeysResponse) MarshalTo

func (m *ListPublicKeysResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListPublicKeysResponse) MarshalToSizedBuffer

func (m *ListPublicKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListPublicKeysResponse) ProtoMessage

func (*ListPublicKeysResponse) ProtoMessage()

func (*ListPublicKeysResponse) Reset

func (m *ListPublicKeysResponse) Reset()

func (*ListPublicKeysResponse) Size

func (m *ListPublicKeysResponse) Size() (n int)

func (*ListPublicKeysResponse) String

func (m *ListPublicKeysResponse) String() string

func (*ListPublicKeysResponse) Unmarshal

func (m *ListPublicKeysResponse) Unmarshal(dAtA []byte) error

func (*ListPublicKeysResponse) XXX_DiscardUnknown

func (m *ListPublicKeysResponse) XXX_DiscardUnknown()

func (*ListPublicKeysResponse) XXX_Marshal

func (m *ListPublicKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPublicKeysResponse) XXX_Merge

func (m *ListPublicKeysResponse) XXX_Merge(src proto.Message)

func (*ListPublicKeysResponse) XXX_Size

func (m *ListPublicKeysResponse) XXX_Size() int

func (*ListPublicKeysResponse) XXX_Unmarshal

func (m *ListPublicKeysResponse) XXX_Unmarshal(b []byte) error

type RemoteSignerClient

type RemoteSignerClient interface {
	ListValidatingPublicKeys(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*ListPublicKeysResponse, error)
	Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error)
}

RemoteSignerClient is the client API for RemoteSigner service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRemoteSignerClient

func NewRemoteSignerClient(cc *grpc.ClientConn) RemoteSignerClient

type RemoteSignerServer

type RemoteSignerServer interface {
	ListValidatingPublicKeys(context.Context, *types.Empty) (*ListPublicKeysResponse, error)
	Sign(context.Context, *SignRequest) (*SignResponse, error)
}

RemoteSignerServer is the server API for RemoteSigner service.

type SignRequest

type SignRequest struct {
	PublicKey            []byte   `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	SigningRoot          []byte   `protobuf:"bytes,2,opt,name=signing_root,json=signingRoot,proto3" json:"signing_root,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SignRequest) Descriptor

func (*SignRequest) Descriptor() ([]byte, []int)

func (*SignRequest) GetPublicKey

func (m *SignRequest) GetPublicKey() []byte

func (*SignRequest) GetSigningRoot

func (m *SignRequest) GetSigningRoot() []byte

func (*SignRequest) Marshal

func (m *SignRequest) Marshal() (dAtA []byte, err error)

func (*SignRequest) MarshalTo

func (m *SignRequest) MarshalTo(dAtA []byte) (int, error)

func (*SignRequest) MarshalToSizedBuffer

func (m *SignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignRequest) ProtoMessage

func (*SignRequest) ProtoMessage()

func (*SignRequest) Reset

func (m *SignRequest) Reset()

func (*SignRequest) Size

func (m *SignRequest) Size() (n int)

func (*SignRequest) String

func (m *SignRequest) String() string

func (*SignRequest) Unmarshal

func (m *SignRequest) Unmarshal(dAtA []byte) error

func (*SignRequest) XXX_DiscardUnknown

func (m *SignRequest) XXX_DiscardUnknown()

func (*SignRequest) XXX_Marshal

func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignRequest) XXX_Merge

func (m *SignRequest) XXX_Merge(src proto.Message)

func (*SignRequest) XXX_Size

func (m *SignRequest) XXX_Size() int

func (*SignRequest) XXX_Unmarshal

func (m *SignRequest) XXX_Unmarshal(b []byte) error

type SignResponse

type SignResponse struct {
	Signature            []byte              `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Status               SignResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=ethereum.validator.accounts.v2.SignResponse_Status" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*SignResponse) Descriptor

func (*SignResponse) Descriptor() ([]byte, []int)

func (*SignResponse) GetSignature

func (m *SignResponse) GetSignature() []byte

func (*SignResponse) GetStatus

func (m *SignResponse) GetStatus() SignResponse_Status

func (*SignResponse) Marshal

func (m *SignResponse) Marshal() (dAtA []byte, err error)

func (*SignResponse) MarshalTo

func (m *SignResponse) MarshalTo(dAtA []byte) (int, error)

func (*SignResponse) MarshalToSizedBuffer

func (m *SignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignResponse) ProtoMessage

func (*SignResponse) ProtoMessage()

func (*SignResponse) Reset

func (m *SignResponse) Reset()

func (*SignResponse) Size

func (m *SignResponse) Size() (n int)

func (*SignResponse) String

func (m *SignResponse) String() string

func (*SignResponse) Unmarshal

func (m *SignResponse) Unmarshal(dAtA []byte) error

func (*SignResponse) XXX_DiscardUnknown

func (m *SignResponse) XXX_DiscardUnknown()

func (*SignResponse) XXX_Marshal

func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignResponse) XXX_Merge

func (m *SignResponse) XXX_Merge(src proto.Message)

func (*SignResponse) XXX_Size

func (m *SignResponse) XXX_Size() int

func (*SignResponse) XXX_Unmarshal

func (m *SignResponse) XXX_Unmarshal(b []byte) error

type SignResponse_Status

type SignResponse_Status int32
const (
	SignResponse_UNKNOWN   SignResponse_Status = 0
	SignResponse_SUCCEEDED SignResponse_Status = 1
	SignResponse_DENIED    SignResponse_Status = 2
	SignResponse_FAILED    SignResponse_Status = 3
)

func (SignResponse_Status) EnumDescriptor

func (SignResponse_Status) EnumDescriptor() ([]byte, []int)

func (SignResponse_Status) String

func (x SignResponse_Status) String() string

type UnimplementedRemoteSignerServer

type UnimplementedRemoteSignerServer struct {
}

UnimplementedRemoteSignerServer can be embedded to have forward compatible implementations.

func (*UnimplementedRemoteSignerServer) ListValidatingPublicKeys

func (*UnimplementedRemoteSignerServer) ListValidatingPublicKeys(ctx context.Context, req *types.Empty) (*ListPublicKeysResponse, error)

func (*UnimplementedRemoteSignerServer) Sign

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL