privval

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//	*Message_PubKeyRequest
	//	*Message_PubKeyResponse
	//	*Message_SignVoteRequest
	//	*Message_SignedVoteResponse
	//	*Message_SignProposalRequest
	//	*Message_SignedProposalResponse
	//	*Message_PingRequest
	//	*Message_PingResponse
	//	*Message_VrfProofRequest
	//	*Message_VrfProofResponse
	Sum isMessage_Sum `protobuf_oneof:"sum"`
}

func (*Message) Descriptor

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

func (*Message) GetPingRequest

func (m *Message) GetPingRequest() *privval.PingRequest

func (*Message) GetPingResponse

func (m *Message) GetPingResponse() *privval.PingResponse

func (*Message) GetPubKeyRequest

func (m *Message) GetPubKeyRequest() *privval.PubKeyRequest

func (*Message) GetPubKeyResponse

func (m *Message) GetPubKeyResponse() *privval.PubKeyResponse

func (*Message) GetSignProposalRequest

func (m *Message) GetSignProposalRequest() *privval.SignProposalRequest

func (*Message) GetSignVoteRequest

func (m *Message) GetSignVoteRequest() *privval.SignVoteRequest

func (*Message) GetSignedProposalResponse

func (m *Message) GetSignedProposalResponse() *privval.SignedProposalResponse

func (*Message) GetSignedVoteResponse

func (m *Message) GetSignedVoteResponse() *privval.SignedVoteResponse

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) GetVrfProofRequest

func (m *Message) GetVrfProofRequest() *VRFProofRequest

func (*Message) GetVrfProofResponse

func (m *Message) GetVrfProofResponse() *VRFProofResponse

func (*Message) Marshal

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

func (*Message) MarshalTo

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

func (*Message) MarshalToSizedBuffer

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

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

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

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

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_OneofWrappers

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_PingRequest

type Message_PingRequest struct {
	PingRequest *privval.PingRequest `protobuf:"bytes,7,opt,name=ping_request,json=pingRequest,proto3,oneof" json:"ping_request,omitempty"`
}

func (*Message_PingRequest) MarshalTo

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

func (*Message_PingRequest) MarshalToSizedBuffer

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

func (*Message_PingRequest) Size

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

type Message_PingResponse

type Message_PingResponse struct {
	PingResponse *privval.PingResponse `protobuf:"bytes,8,opt,name=ping_response,json=pingResponse,proto3,oneof" json:"ping_response,omitempty"`
}

func (*Message_PingResponse) MarshalTo

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

func (*Message_PingResponse) MarshalToSizedBuffer

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

func (*Message_PingResponse) Size

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

type Message_PubKeyRequest

type Message_PubKeyRequest struct {
	PubKeyRequest *privval.PubKeyRequest `protobuf:"bytes,1,opt,name=pub_key_request,json=pubKeyRequest,proto3,oneof" json:"pub_key_request,omitempty"`
}

func (*Message_PubKeyRequest) MarshalTo

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

func (*Message_PubKeyRequest) MarshalToSizedBuffer

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

func (*Message_PubKeyRequest) Size

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

type Message_PubKeyResponse

type Message_PubKeyResponse struct {
	PubKeyResponse *privval.PubKeyResponse `protobuf:"bytes,2,opt,name=pub_key_response,json=pubKeyResponse,proto3,oneof" json:"pub_key_response,omitempty"`
}

func (*Message_PubKeyResponse) MarshalTo

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

func (*Message_PubKeyResponse) MarshalToSizedBuffer

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

func (*Message_PubKeyResponse) Size

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

type Message_SignProposalRequest

type Message_SignProposalRequest struct {
	SignProposalRequest *privval.SignProposalRequest `` /* 126-byte string literal not displayed */
}

func (*Message_SignProposalRequest) MarshalTo

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

func (*Message_SignProposalRequest) MarshalToSizedBuffer

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

func (*Message_SignProposalRequest) Size

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

type Message_SignVoteRequest

type Message_SignVoteRequest struct {
	SignVoteRequest *privval.SignVoteRequest `protobuf:"bytes,3,opt,name=sign_vote_request,json=signVoteRequest,proto3,oneof" json:"sign_vote_request,omitempty"`
}

func (*Message_SignVoteRequest) MarshalTo

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

func (*Message_SignVoteRequest) MarshalToSizedBuffer

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

func (*Message_SignVoteRequest) Size

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

type Message_SignedProposalResponse

type Message_SignedProposalResponse struct {
	SignedProposalResponse *privval.SignedProposalResponse `` /* 135-byte string literal not displayed */
}

func (*Message_SignedProposalResponse) MarshalTo

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

func (*Message_SignedProposalResponse) MarshalToSizedBuffer

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

func (*Message_SignedProposalResponse) Size

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

type Message_SignedVoteResponse

type Message_SignedVoteResponse struct {
	SignedVoteResponse *privval.SignedVoteResponse `protobuf:"bytes,4,opt,name=signed_vote_response,json=signedVoteResponse,proto3,oneof" json:"signed_vote_response,omitempty"`
}

func (*Message_SignedVoteResponse) MarshalTo

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

func (*Message_SignedVoteResponse) MarshalToSizedBuffer

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

func (*Message_SignedVoteResponse) Size

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

type Message_VrfProofRequest

type Message_VrfProofRequest struct {
	VrfProofRequest *VRFProofRequest `protobuf:"bytes,1000,opt,name=vrf_proof_request,json=vrfProofRequest,proto3,oneof" json:"vrf_proof_request,omitempty"`
}

func (*Message_VrfProofRequest) MarshalTo

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

func (*Message_VrfProofRequest) MarshalToSizedBuffer

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

func (*Message_VrfProofRequest) Size

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

type Message_VrfProofResponse

type Message_VrfProofResponse struct {
	VrfProofResponse *VRFProofResponse `protobuf:"bytes,1001,opt,name=vrf_proof_response,json=vrfProofResponse,proto3,oneof" json:"vrf_proof_response,omitempty"`
}

func (*Message_VrfProofResponse) MarshalTo

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

func (*Message_VrfProofResponse) MarshalToSizedBuffer

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

func (*Message_VrfProofResponse) Size

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

type VRFProofRequest

type VRFProofRequest struct {
	Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}

VRFProofRequest is a PrivValidatorSocket message containing a message to generate proof.

func (*VRFProofRequest) Descriptor

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

func (*VRFProofRequest) GetMessage

func (m *VRFProofRequest) GetMessage() []byte

func (*VRFProofRequest) Marshal

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

func (*VRFProofRequest) MarshalTo

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

func (*VRFProofRequest) MarshalToSizedBuffer

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

func (*VRFProofRequest) ProtoMessage

func (*VRFProofRequest) ProtoMessage()

func (*VRFProofRequest) Reset

func (m *VRFProofRequest) Reset()

func (*VRFProofRequest) Size

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

func (*VRFProofRequest) String

func (m *VRFProofRequest) String() string

func (*VRFProofRequest) Unmarshal

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

func (*VRFProofRequest) XXX_DiscardUnknown

func (m *VRFProofRequest) XXX_DiscardUnknown()

func (*VRFProofRequest) XXX_Marshal

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

func (*VRFProofRequest) XXX_Merge

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

func (*VRFProofRequest) XXX_Size

func (m *VRFProofRequest) XXX_Size() int

func (*VRFProofRequest) XXX_Unmarshal

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

type VRFProofResponse

type VRFProofResponse struct {
	Proof []byte                     `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	Error *privval.RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
}

VRFProofResponse is a PrivValidatorSocket message containing a Proof.

func (*VRFProofResponse) Descriptor

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

func (*VRFProofResponse) GetError

func (*VRFProofResponse) GetProof

func (m *VRFProofResponse) GetProof() []byte

func (*VRFProofResponse) Marshal

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

func (*VRFProofResponse) MarshalTo

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

func (*VRFProofResponse) MarshalToSizedBuffer

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

func (*VRFProofResponse) ProtoMessage

func (*VRFProofResponse) ProtoMessage()

func (*VRFProofResponse) Reset

func (m *VRFProofResponse) Reset()

func (*VRFProofResponse) Size

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

func (*VRFProofResponse) String

func (m *VRFProofResponse) String() string

func (*VRFProofResponse) Unmarshal

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

func (*VRFProofResponse) XXX_DiscardUnknown

func (m *VRFProofResponse) XXX_DiscardUnknown()

func (*VRFProofResponse) XXX_Marshal

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

func (*VRFProofResponse) XXX_Merge

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

func (*VRFProofResponse) XXX_Size

func (m *VRFProofResponse) XXX_Size() int

func (*VRFProofResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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