privval

package
v0.0.0-...-f498596 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePVKey

type FilePVKey struct {
	Address              []byte          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey               keys.PublicKey  `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	PrivKey              keys.PrivateKey `protobuf:"bytes,3,opt,name=priv_key,json=privKey,proto3" json:"priv_key"`
	FilePath             string          `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

FilePVKey stores the immutable part of PrivValidator.

func (*FilePVKey) Descriptor

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

func (*FilePVKey) GetAddress

func (m *FilePVKey) GetAddress() []byte

func (*FilePVKey) GetFilePath

func (m *FilePVKey) GetFilePath() string

func (*FilePVKey) GetPrivKey

func (m *FilePVKey) GetPrivKey() keys.PrivateKey

func (*FilePVKey) GetPubKey

func (m *FilePVKey) GetPubKey() keys.PublicKey

func (*FilePVKey) ProtoMessage

func (*FilePVKey) ProtoMessage()

func (*FilePVKey) Reset

func (m *FilePVKey) Reset()

func (*FilePVKey) String

func (m *FilePVKey) String() string

func (*FilePVKey) XXX_DiscardUnknown

func (m *FilePVKey) XXX_DiscardUnknown()

func (*FilePVKey) XXX_Marshal

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

func (*FilePVKey) XXX_Merge

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

func (*FilePVKey) XXX_Size

func (m *FilePVKey) XXX_Size() int

func (*FilePVKey) XXX_Unmarshal

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

type FilePVLastSignState

type FilePVLastSignState struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int64    `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Step                 int32    `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	Signature            []byte   `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	SignBytes            []byte   `protobuf:"bytes,5,opt,name=sign_bytes,json=signBytes,proto3" json:"sign_bytes,omitempty"`
	FilePath             string   `protobuf:"bytes,6,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

FilePVLastSignState stores the mutable part of PrivValidator.

func (*FilePVLastSignState) Descriptor

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

func (*FilePVLastSignState) GetFilePath

func (m *FilePVLastSignState) GetFilePath() string

func (*FilePVLastSignState) GetHeight

func (m *FilePVLastSignState) GetHeight() int64

func (*FilePVLastSignState) GetRound

func (m *FilePVLastSignState) GetRound() int64

func (*FilePVLastSignState) GetSignBytes

func (m *FilePVLastSignState) GetSignBytes() []byte

func (*FilePVLastSignState) GetSignature

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

func (*FilePVLastSignState) GetStep

func (m *FilePVLastSignState) GetStep() int32

func (*FilePVLastSignState) ProtoMessage

func (*FilePVLastSignState) ProtoMessage()

func (*FilePVLastSignState) Reset

func (m *FilePVLastSignState) Reset()

func (*FilePVLastSignState) String

func (m *FilePVLastSignState) String() string

func (*FilePVLastSignState) XXX_DiscardUnknown

func (m *FilePVLastSignState) XXX_DiscardUnknown()

func (*FilePVLastSignState) XXX_Marshal

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

func (*FilePVLastSignState) XXX_Merge

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

func (*FilePVLastSignState) XXX_Size

func (m *FilePVLastSignState) XXX_Size() int

func (*FilePVLastSignState) XXX_Unmarshal

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

type PingRequest

type PingRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PingRequest is a request to confirm that the connection is alive.

func (*PingRequest) Descriptor

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

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

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

func (*PingRequest) XXX_Merge

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

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

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

type PingResponse

type PingResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PingResponse is a response to confirm that the connection is alive.

func (*PingResponse) Descriptor

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

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) String

func (m *PingResponse) String() string

func (*PingResponse) XXX_DiscardUnknown

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal

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

func (*PingResponse) XXX_Merge

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

func (*PingResponse) XXX_Size

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal

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

type PubKeyRequest

type PubKeyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PubKeyRequest requests the consensus public key from the remote signer.

func (*PubKeyRequest) Descriptor

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

func (*PubKeyRequest) ProtoMessage

func (*PubKeyRequest) ProtoMessage()

func (*PubKeyRequest) Reset

func (m *PubKeyRequest) Reset()

func (*PubKeyRequest) String

func (m *PubKeyRequest) String() string

func (*PubKeyRequest) XXX_DiscardUnknown

func (m *PubKeyRequest) XXX_DiscardUnknown()

func (*PubKeyRequest) XXX_Marshal

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

func (*PubKeyRequest) XXX_Merge

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

func (*PubKeyRequest) XXX_Size

func (m *PubKeyRequest) XXX_Size() int

func (*PubKeyRequest) XXX_Unmarshal

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

type PubKeyResponse

type PubKeyResponse struct {
	PubKey               keys.PublicKey     `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	Error                *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

PubKeyResponse is a response message containing the public key.

func (*PubKeyResponse) Descriptor

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

func (*PubKeyResponse) GetError

func (m *PubKeyResponse) GetError() *RemoteSignerError

func (*PubKeyResponse) GetPubKey

func (m *PubKeyResponse) GetPubKey() keys.PublicKey

func (*PubKeyResponse) ProtoMessage

func (*PubKeyResponse) ProtoMessage()

func (*PubKeyResponse) Reset

func (m *PubKeyResponse) Reset()

func (*PubKeyResponse) String

func (m *PubKeyResponse) String() string

func (*PubKeyResponse) XXX_DiscardUnknown

func (m *PubKeyResponse) XXX_DiscardUnknown()

func (*PubKeyResponse) XXX_Marshal

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

func (*PubKeyResponse) XXX_Merge

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

func (*PubKeyResponse) XXX_Size

func (m *PubKeyResponse) XXX_Size() int

func (*PubKeyResponse) XXX_Unmarshal

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

type RemoteSignerError

type RemoteSignerError struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoteSignerError) Descriptor

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

func (*RemoteSignerError) GetCode

func (m *RemoteSignerError) GetCode() int32

func (*RemoteSignerError) GetDescription

func (m *RemoteSignerError) GetDescription() string

func (*RemoteSignerError) ProtoMessage

func (*RemoteSignerError) ProtoMessage()

func (*RemoteSignerError) Reset

func (m *RemoteSignerError) Reset()

func (*RemoteSignerError) String

func (m *RemoteSignerError) String() string

func (*RemoteSignerError) XXX_DiscardUnknown

func (m *RemoteSignerError) XXX_DiscardUnknown()

func (*RemoteSignerError) XXX_Marshal

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

func (*RemoteSignerError) XXX_Merge

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

func (*RemoteSignerError) XXX_Size

func (m *RemoteSignerError) XXX_Size() int

func (*RemoteSignerError) XXX_Unmarshal

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

type SignProposalRequest

type SignProposalRequest struct {
	Proposal             types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

SignProposalRequest is a request to sign a proposal

func (*SignProposalRequest) Descriptor

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

func (*SignProposalRequest) GetProposal

func (m *SignProposalRequest) GetProposal() types.Proposal

func (*SignProposalRequest) ProtoMessage

func (*SignProposalRequest) ProtoMessage()

func (*SignProposalRequest) Reset

func (m *SignProposalRequest) Reset()

func (*SignProposalRequest) String

func (m *SignProposalRequest) String() string

func (*SignProposalRequest) XXX_DiscardUnknown

func (m *SignProposalRequest) XXX_DiscardUnknown()

func (*SignProposalRequest) XXX_Marshal

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

func (*SignProposalRequest) XXX_Merge

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

func (*SignProposalRequest) XXX_Size

func (m *SignProposalRequest) XXX_Size() int

func (*SignProposalRequest) XXX_Unmarshal

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

type SignVoteRequest

type SignVoteRequest struct {
	Vote                 types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

SignVoteRequest is a request to sign a vote

func (*SignVoteRequest) Descriptor

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

func (*SignVoteRequest) GetVote

func (m *SignVoteRequest) GetVote() types.Vote

func (*SignVoteRequest) ProtoMessage

func (*SignVoteRequest) ProtoMessage()

func (*SignVoteRequest) Reset

func (m *SignVoteRequest) Reset()

func (*SignVoteRequest) String

func (m *SignVoteRequest) String() string

func (*SignVoteRequest) XXX_DiscardUnknown

func (m *SignVoteRequest) XXX_DiscardUnknown()

func (*SignVoteRequest) XXX_Marshal

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

func (*SignVoteRequest) XXX_Merge

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

func (*SignVoteRequest) XXX_Size

func (m *SignVoteRequest) XXX_Size() int

func (*SignVoteRequest) XXX_Unmarshal

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

type SignVoteResponse

type SignVoteResponse struct {
	Vote                 types.Vote         `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
	Error                *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

SignedVoteResponse is a response containing a signed vote or an error

func (*SignVoteResponse) Descriptor

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

func (*SignVoteResponse) GetError

func (m *SignVoteResponse) GetError() *RemoteSignerError

func (*SignVoteResponse) GetVote

func (m *SignVoteResponse) GetVote() types.Vote

func (*SignVoteResponse) ProtoMessage

func (*SignVoteResponse) ProtoMessage()

func (*SignVoteResponse) Reset

func (m *SignVoteResponse) Reset()

func (*SignVoteResponse) String

func (m *SignVoteResponse) String() string

func (*SignVoteResponse) XXX_DiscardUnknown

func (m *SignVoteResponse) XXX_DiscardUnknown()

func (*SignVoteResponse) XXX_Marshal

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

func (*SignVoteResponse) XXX_Merge

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

func (*SignVoteResponse) XXX_Size

func (m *SignVoteResponse) XXX_Size() int

func (*SignVoteResponse) XXX_Unmarshal

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

type SignedProposalResponse

type SignedProposalResponse struct {
	Proposal             types.Proposal     `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
	Error                *RemoteSignerError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

SignedProposalResponse is response containing a signed proposal or an error

func (*SignedProposalResponse) Descriptor

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

func (*SignedProposalResponse) GetError

func (*SignedProposalResponse) GetProposal

func (m *SignedProposalResponse) GetProposal() types.Proposal

func (*SignedProposalResponse) ProtoMessage

func (*SignedProposalResponse) ProtoMessage()

func (*SignedProposalResponse) Reset

func (m *SignedProposalResponse) Reset()

func (*SignedProposalResponse) String

func (m *SignedProposalResponse) String() string

func (*SignedProposalResponse) XXX_DiscardUnknown

func (m *SignedProposalResponse) XXX_DiscardUnknown()

func (*SignedProposalResponse) XXX_Marshal

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

func (*SignedProposalResponse) XXX_Merge

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

func (*SignedProposalResponse) XXX_Size

func (m *SignedProposalResponse) XXX_Size() int

func (*SignedProposalResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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