ethereumvalidatoraccountsv2

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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"`
	SignatureDomain []byte `protobuf:"bytes,3,opt,name=signature_domain,json=signatureDomain,proto3" json:"signature_domain,omitempty"`
	// Types that are valid to be assigned to Object:
	//	*SignRequest_Block
	//	*SignRequest_AttestationData
	//	*SignRequest_AggregateAttestationAndProof
	//	*SignRequest_Exit
	//	*SignRequest_Slot
	//	*SignRequest_Epoch
	Object               isSignRequest_Object `protobuf_oneof:"object"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func NewSignRequestFromNewPrysm

func NewSignRequestFromNewPrysm(newPrysm *validatorpb.SignRequest) (*SignRequest, error)

NewSignRequestFromNewPrysm creates new sign request

func (*SignRequest) Descriptor

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

func (*SignRequest) GetAggregateAttestationAndProof

func (m *SignRequest) GetAggregateAttestationAndProof() *eth.AggregateAttestationAndProof

func (*SignRequest) GetAttestationData

func (m *SignRequest) GetAttestationData() *eth.AttestationData

func (*SignRequest) GetBlock

func (m *SignRequest) GetBlock() *eth.BeaconBlock

func (*SignRequest) GetEpoch

func (m *SignRequest) GetEpoch() uint64

func (*SignRequest) GetExit

func (m *SignRequest) GetExit() *eth.VoluntaryExit

func (*SignRequest) GetObject

func (m *SignRequest) GetObject() isSignRequest_Object

func (*SignRequest) GetPublicKey

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

func (*SignRequest) GetSignatureDomain

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

func (*SignRequest) GetSigningRoot

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

func (*SignRequest) GetSlot

func (m *SignRequest) GetSlot() uint64

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_OneofWrappers

func (*SignRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SignRequest) XXX_Size

func (m *SignRequest) XXX_Size() int

func (*SignRequest) XXX_Unmarshal

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

type SignRequest_AggregateAttestationAndProof

type SignRequest_AggregateAttestationAndProof struct {
	AggregateAttestationAndProof *eth.AggregateAttestationAndProof `` /* 157-byte string literal not displayed */
}

func (*SignRequest_AggregateAttestationAndProof) MarshalTo

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

func (*SignRequest_AggregateAttestationAndProof) MarshalToSizedBuffer

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

func (*SignRequest_AggregateAttestationAndProof) Size

type SignRequest_AttestationData

type SignRequest_AttestationData struct {
	AttestationData *eth.AttestationData `protobuf:"bytes,102,opt,name=attestation_data,json=attestationData,proto3,oneof" json:"attestation_data,omitempty"`
}

func (*SignRequest_AttestationData) MarshalTo

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

func (*SignRequest_AttestationData) MarshalToSizedBuffer

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

func (*SignRequest_AttestationData) Size

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

type SignRequest_Block

type SignRequest_Block struct {
	Block *eth.BeaconBlock `protobuf:"bytes,101,opt,name=block,proto3,oneof" json:"block,omitempty"`
}

func (*SignRequest_Block) MarshalTo

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

func (*SignRequest_Block) MarshalToSizedBuffer

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

func (*SignRequest_Block) Size

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

type SignRequest_Epoch

type SignRequest_Epoch struct {
	Epoch uint64 `protobuf:"varint,106,opt,name=epoch,proto3,oneof" json:"epoch,omitempty"`
}

func (*SignRequest_Epoch) MarshalTo

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

func (*SignRequest_Epoch) MarshalToSizedBuffer

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

func (*SignRequest_Epoch) Size

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

type SignRequest_Exit

type SignRequest_Exit struct {
	Exit *eth.VoluntaryExit `protobuf:"bytes,104,opt,name=exit,proto3,oneof" json:"exit,omitempty"`
}

func (*SignRequest_Exit) MarshalTo

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

func (*SignRequest_Exit) MarshalToSizedBuffer

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

func (*SignRequest_Exit) Size

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

type SignRequest_Slot

type SignRequest_Slot struct {
	Slot uint64 `protobuf:"varint,105,opt,name=slot,proto3,oneof" json:"slot,omitempty"`
}

func (*SignRequest_Slot) MarshalTo

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

func (*SignRequest_Slot) MarshalToSizedBuffer

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

func (*SignRequest_Slot) Size

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

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