Documentation ¶
Index ¶
- Variables
- func RegisterCosignerServer(s grpc1.Server, srv CosignerServer)
- func RegisterRemoteSignerServer(s grpc1.Server, srv RemoteSignerServer)
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetHeight() int64
- func (m *Block) GetRound() int64
- func (m *Block) GetSignBytes() []byte
- func (m *Block) GetStep() int32
- func (m *Block) GetTimestamp() int64
- func (m *Block) GetVoteExtSignBytes() []byte
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type CosignerClient
- type CosignerServer
- type GetLeaderRequest
- func (*GetLeaderRequest) Descriptor() ([]byte, []int)
- func (m *GetLeaderRequest) Marshal() (dAtA []byte, err error)
- func (m *GetLeaderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLeaderRequest) ProtoMessage()
- func (m *GetLeaderRequest) Reset()
- func (m *GetLeaderRequest) Size() (n int)
- func (m *GetLeaderRequest) String() string
- func (m *GetLeaderRequest) Unmarshal(dAtA []byte) error
- func (m *GetLeaderRequest) XXX_DiscardUnknown()
- func (m *GetLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLeaderRequest) XXX_Merge(src proto.Message)
- func (m *GetLeaderRequest) XXX_Size() int
- func (m *GetLeaderRequest) XXX_Unmarshal(b []byte) error
- type GetLeaderResponse
- func (*GetLeaderResponse) Descriptor() ([]byte, []int)
- func (m *GetLeaderResponse) GetLeader() int32
- func (m *GetLeaderResponse) Marshal() (dAtA []byte, err error)
- func (m *GetLeaderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetLeaderResponse) ProtoMessage()
- func (m *GetLeaderResponse) Reset()
- func (m *GetLeaderResponse) Size() (n int)
- func (m *GetLeaderResponse) String() string
- func (m *GetLeaderResponse) Unmarshal(dAtA []byte) error
- func (m *GetLeaderResponse) XXX_DiscardUnknown()
- func (m *GetLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLeaderResponse) XXX_Merge(src proto.Message)
- func (m *GetLeaderResponse) XXX_Size() int
- func (m *GetLeaderResponse) XXX_Unmarshal(b []byte) error
- type GetNoncesRequest
- func (*GetNoncesRequest) Descriptor() ([]byte, []int)
- func (m *GetNoncesRequest) GetUuids() [][]byte
- func (m *GetNoncesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetNoncesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNoncesRequest) ProtoMessage()
- func (m *GetNoncesRequest) Reset()
- func (m *GetNoncesRequest) Size() (n int)
- func (m *GetNoncesRequest) String() string
- func (m *GetNoncesRequest) Unmarshal(dAtA []byte) error
- func (m *GetNoncesRequest) XXX_DiscardUnknown()
- func (m *GetNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNoncesRequest) XXX_Merge(src proto.Message)
- func (m *GetNoncesRequest) XXX_Size() int
- func (m *GetNoncesRequest) XXX_Unmarshal(b []byte) error
- type GetNoncesResponse
- func (*GetNoncesResponse) Descriptor() ([]byte, []int)
- func (m *GetNoncesResponse) GetNonces() []*UUIDNonce
- func (m *GetNoncesResponse) Marshal() (dAtA []byte, err error)
- func (m *GetNoncesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetNoncesResponse) ProtoMessage()
- func (m *GetNoncesResponse) Reset()
- func (m *GetNoncesResponse) Size() (n int)
- func (m *GetNoncesResponse) String() string
- func (m *GetNoncesResponse) Unmarshal(dAtA []byte) error
- func (m *GetNoncesResponse) XXX_DiscardUnknown()
- func (m *GetNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetNoncesResponse) XXX_Merge(src proto.Message)
- func (m *GetNoncesResponse) XXX_Size() int
- func (m *GetNoncesResponse) XXX_Unmarshal(b []byte) error
- type HRST
- func (*HRST) Descriptor() ([]byte, []int)
- func (m *HRST) GetHeight() int64
- func (m *HRST) GetRound() int64
- func (m *HRST) GetStep() int32
- func (m *HRST) GetTimestamp() int64
- func (m *HRST) Marshal() (dAtA []byte, err error)
- func (m *HRST) MarshalTo(dAtA []byte) (int, error)
- func (m *HRST) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HRST) ProtoMessage()
- func (m *HRST) Reset()
- func (m *HRST) Size() (n int)
- func (m *HRST) String() string
- func (m *HRST) Unmarshal(dAtA []byte) error
- func (m *HRST) XXX_DiscardUnknown()
- func (m *HRST) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HRST) XXX_Merge(src proto.Message)
- func (m *HRST) XXX_Size() int
- func (m *HRST) XXX_Unmarshal(b []byte) error
- type Nonce
- func (*Nonce) Descriptor() ([]byte, []int)
- func (m *Nonce) GetDestinationID() int32
- func (m *Nonce) GetPubKey() []byte
- func (m *Nonce) GetShare() []byte
- func (m *Nonce) GetSignature() []byte
- func (m *Nonce) GetSourceID() int32
- func (m *Nonce) Marshal() (dAtA []byte, err error)
- func (m *Nonce) MarshalTo(dAtA []byte) (int, error)
- func (m *Nonce) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Nonce) ProtoMessage()
- func (m *Nonce) Reset()
- func (m *Nonce) Size() (n int)
- func (m *Nonce) String() string
- func (m *Nonce) Unmarshal(dAtA []byte) error
- func (m *Nonce) XXX_DiscardUnknown()
- func (m *Nonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Nonce) XXX_Merge(src proto.Message)
- func (m *Nonce) XXX_Size() int
- func (m *Nonce) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (m *PingRequest) Marshal() (dAtA []byte, err error)
- func (m *PingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) Size() (n int)
- func (m *PingRequest) String() string
- func (m *PingRequest) Unmarshal(dAtA []byte) error
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type PingResponse
- func (*PingResponse) Descriptor() ([]byte, []int)
- func (m *PingResponse) Marshal() (dAtA []byte, err error)
- func (m *PingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PingResponse) ProtoMessage()
- func (m *PingResponse) Reset()
- func (m *PingResponse) Size() (n int)
- func (m *PingResponse) String() string
- func (m *PingResponse) Unmarshal(dAtA []byte) error
- func (m *PingResponse) XXX_DiscardUnknown()
- func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingResponse) XXX_Merge(src proto.Message)
- func (m *PingResponse) XXX_Size() int
- func (m *PingResponse) XXX_Unmarshal(b []byte) error
- type PubKeyRequest
- func (*PubKeyRequest) Descriptor() ([]byte, []int)
- func (m *PubKeyRequest) GetChainId() string
- func (m *PubKeyRequest) Marshal() (dAtA []byte, err error)
- func (m *PubKeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKeyRequest) ProtoMessage()
- func (m *PubKeyRequest) Reset()
- func (m *PubKeyRequest) Size() (n int)
- func (m *PubKeyRequest) String() string
- func (m *PubKeyRequest) Unmarshal(dAtA []byte) error
- func (m *PubKeyRequest) XXX_DiscardUnknown()
- func (m *PubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeyRequest) XXX_Merge(src proto.Message)
- func (m *PubKeyRequest) XXX_Size() int
- func (m *PubKeyRequest) XXX_Unmarshal(b []byte) error
- type PubKeyResponse
- func (*PubKeyResponse) Descriptor() ([]byte, []int)
- func (m *PubKeyResponse) GetPubKey() []byte
- func (m *PubKeyResponse) Marshal() (dAtA []byte, err error)
- func (m *PubKeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubKeyResponse) ProtoMessage()
- func (m *PubKeyResponse) Reset()
- func (m *PubKeyResponse) Size() (n int)
- func (m *PubKeyResponse) String() string
- func (m *PubKeyResponse) Unmarshal(dAtA []byte) error
- func (m *PubKeyResponse) XXX_DiscardUnknown()
- func (m *PubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubKeyResponse) XXX_Merge(src proto.Message)
- func (m *PubKeyResponse) XXX_Size() int
- func (m *PubKeyResponse) XXX_Unmarshal(b []byte) error
- type RemoteSignerClient
- type RemoteSignerServer
- type SetNoncesAndSignRequest
- func (*SetNoncesAndSignRequest) Descriptor() ([]byte, []int)
- func (m *SetNoncesAndSignRequest) GetChainID() string
- func (m *SetNoncesAndSignRequest) GetHrst() *HRST
- func (m *SetNoncesAndSignRequest) GetNonces() []*Nonce
- func (m *SetNoncesAndSignRequest) GetSignBytes() []byte
- func (m *SetNoncesAndSignRequest) GetUuid() []byte
- func (m *SetNoncesAndSignRequest) GetVoteExtNonces() []*Nonce
- func (m *SetNoncesAndSignRequest) GetVoteExtSignBytes() []byte
- func (m *SetNoncesAndSignRequest) GetVoteExtUuid() []byte
- func (m *SetNoncesAndSignRequest) Marshal() (dAtA []byte, err error)
- func (m *SetNoncesAndSignRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SetNoncesAndSignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetNoncesAndSignRequest) ProtoMessage()
- func (m *SetNoncesAndSignRequest) Reset()
- func (m *SetNoncesAndSignRequest) Size() (n int)
- func (m *SetNoncesAndSignRequest) String() string
- func (m *SetNoncesAndSignRequest) Unmarshal(dAtA []byte) error
- func (m *SetNoncesAndSignRequest) XXX_DiscardUnknown()
- func (m *SetNoncesAndSignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetNoncesAndSignRequest) XXX_Merge(src proto.Message)
- func (m *SetNoncesAndSignRequest) XXX_Size() int
- func (m *SetNoncesAndSignRequest) XXX_Unmarshal(b []byte) error
- type SetNoncesAndSignResponse
- func (*SetNoncesAndSignResponse) Descriptor() ([]byte, []int)
- func (m *SetNoncesAndSignResponse) GetNoncePublic() []byte
- func (m *SetNoncesAndSignResponse) GetSignature() []byte
- func (m *SetNoncesAndSignResponse) GetTimestamp() int64
- func (m *SetNoncesAndSignResponse) GetVoteExtNoncePublic() []byte
- func (m *SetNoncesAndSignResponse) GetVoteExtSignature() []byte
- func (m *SetNoncesAndSignResponse) Marshal() (dAtA []byte, err error)
- func (m *SetNoncesAndSignResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SetNoncesAndSignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetNoncesAndSignResponse) ProtoMessage()
- func (m *SetNoncesAndSignResponse) Reset()
- func (m *SetNoncesAndSignResponse) Size() (n int)
- func (m *SetNoncesAndSignResponse) String() string
- func (m *SetNoncesAndSignResponse) Unmarshal(dAtA []byte) error
- func (m *SetNoncesAndSignResponse) XXX_DiscardUnknown()
- func (m *SetNoncesAndSignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetNoncesAndSignResponse) XXX_Merge(src proto.Message)
- func (m *SetNoncesAndSignResponse) XXX_Size() int
- func (m *SetNoncesAndSignResponse) XXX_Unmarshal(b []byte) error
- type SignBlockRequest
- func (*SignBlockRequest) Descriptor() ([]byte, []int)
- func (m *SignBlockRequest) GetBlock() *Block
- func (m *SignBlockRequest) GetChainID() string
- func (m *SignBlockRequest) Marshal() (dAtA []byte, err error)
- func (m *SignBlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SignBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignBlockRequest) ProtoMessage()
- func (m *SignBlockRequest) Reset()
- func (m *SignBlockRequest) Size() (n int)
- func (m *SignBlockRequest) String() string
- func (m *SignBlockRequest) Unmarshal(dAtA []byte) error
- func (m *SignBlockRequest) XXX_DiscardUnknown()
- func (m *SignBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignBlockRequest) XXX_Merge(src proto.Message)
- func (m *SignBlockRequest) XXX_Size() int
- func (m *SignBlockRequest) XXX_Unmarshal(b []byte) error
- type SignBlockResponse
- func (*SignBlockResponse) Descriptor() ([]byte, []int)
- func (m *SignBlockResponse) GetSignature() []byte
- func (m *SignBlockResponse) GetTimestamp() int64
- func (m *SignBlockResponse) GetVoteExtSignature() []byte
- func (m *SignBlockResponse) Marshal() (dAtA []byte, err error)
- func (m *SignBlockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SignBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignBlockResponse) ProtoMessage()
- func (m *SignBlockResponse) Reset()
- func (m *SignBlockResponse) Size() (n int)
- func (m *SignBlockResponse) String() string
- func (m *SignBlockResponse) Unmarshal(dAtA []byte) error
- func (m *SignBlockResponse) XXX_DiscardUnknown()
- func (m *SignBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignBlockResponse) XXX_Merge(src proto.Message)
- func (m *SignBlockResponse) XXX_Size() int
- func (m *SignBlockResponse) XXX_Unmarshal(b []byte) error
- type TransferLeadershipRequest
- func (*TransferLeadershipRequest) Descriptor() ([]byte, []int)
- func (m *TransferLeadershipRequest) GetLeaderID() string
- func (m *TransferLeadershipRequest) Marshal() (dAtA []byte, err error)
- func (m *TransferLeadershipRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferLeadershipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransferLeadershipRequest) ProtoMessage()
- func (m *TransferLeadershipRequest) Reset()
- func (m *TransferLeadershipRequest) Size() (n int)
- func (m *TransferLeadershipRequest) String() string
- func (m *TransferLeadershipRequest) Unmarshal(dAtA []byte) error
- func (m *TransferLeadershipRequest) XXX_DiscardUnknown()
- func (m *TransferLeadershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferLeadershipRequest) XXX_Merge(src proto.Message)
- func (m *TransferLeadershipRequest) XXX_Size() int
- func (m *TransferLeadershipRequest) XXX_Unmarshal(b []byte) error
- type TransferLeadershipResponse
- func (*TransferLeadershipResponse) Descriptor() ([]byte, []int)
- func (m *TransferLeadershipResponse) GetLeaderAddress() string
- func (m *TransferLeadershipResponse) GetLeaderID() string
- func (m *TransferLeadershipResponse) Marshal() (dAtA []byte, err error)
- func (m *TransferLeadershipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferLeadershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransferLeadershipResponse) ProtoMessage()
- func (m *TransferLeadershipResponse) Reset()
- func (m *TransferLeadershipResponse) Size() (n int)
- func (m *TransferLeadershipResponse) String() string
- func (m *TransferLeadershipResponse) Unmarshal(dAtA []byte) error
- func (m *TransferLeadershipResponse) XXX_DiscardUnknown()
- func (m *TransferLeadershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferLeadershipResponse) XXX_Merge(src proto.Message)
- func (m *TransferLeadershipResponse) XXX_Size() int
- func (m *TransferLeadershipResponse) XXX_Unmarshal(b []byte) error
- type UUIDNonce
- func (*UUIDNonce) Descriptor() ([]byte, []int)
- func (m *UUIDNonce) GetNonces() []*Nonce
- func (m *UUIDNonce) GetUuid() []byte
- func (m *UUIDNonce) Marshal() (dAtA []byte, err error)
- func (m *UUIDNonce) MarshalTo(dAtA []byte) (int, error)
- func (m *UUIDNonce) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UUIDNonce) ProtoMessage()
- func (m *UUIDNonce) Reset()
- func (m *UUIDNonce) Size() (n int)
- func (m *UUIDNonce) String() string
- func (m *UUIDNonce) Unmarshal(dAtA []byte) error
- func (m *UUIDNonce) XXX_DiscardUnknown()
- func (m *UUIDNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UUIDNonce) XXX_Merge(src proto.Message)
- func (m *UUIDNonce) XXX_Size() int
- func (m *UUIDNonce) XXX_Unmarshal(b []byte) error
- type UnimplementedCosignerServer
- func (*UnimplementedCosignerServer) GetLeader(ctx context.Context, req *GetLeaderRequest) (*GetLeaderResponse, error)
- func (*UnimplementedCosignerServer) GetNonces(ctx context.Context, req *GetNoncesRequest) (*GetNoncesResponse, error)
- func (*UnimplementedCosignerServer) Ping(ctx context.Context, req *PingRequest) (*PingResponse, error)
- func (*UnimplementedCosignerServer) SetNoncesAndSign(ctx context.Context, req *SetNoncesAndSignRequest) (*SetNoncesAndSignResponse, error)
- func (*UnimplementedCosignerServer) SignBlock(ctx context.Context, req *SignBlockRequest) (*SignBlockResponse, error)
- func (*UnimplementedCosignerServer) TransferLeadership(ctx context.Context, req *TransferLeadershipRequest) (*TransferLeadershipResponse, error)
- type UnimplementedRemoteSignerServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCosignerServer ¶
func RegisterCosignerServer(s grpc1.Server, srv CosignerServer)
func RegisterRemoteSignerServer ¶
func RegisterRemoteSignerServer(s grpc1.Server, srv RemoteSignerServer)
Types ¶
type Block ¶
type Block 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"` SignBytes []byte `protobuf:"bytes,4,opt,name=signBytes,proto3" json:"signBytes,omitempty"` VoteExtSignBytes []byte `protobuf:"bytes,5,opt,name=voteExtSignBytes,proto3" json:"voteExtSignBytes,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetSignBytes ¶
func (*Block) GetTimestamp ¶
func (*Block) GetVoteExtSignBytes ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type CosignerClient ¶
type CosignerClient interface { SignBlock(ctx context.Context, in *SignBlockRequest, opts ...grpc.CallOption) (*SignBlockResponse, error) SetNoncesAndSign(ctx context.Context, in *SetNoncesAndSignRequest, opts ...grpc.CallOption) (*SetNoncesAndSignResponse, error) GetNonces(ctx context.Context, in *GetNoncesRequest, opts ...grpc.CallOption) (*GetNoncesResponse, error) TransferLeadership(ctx context.Context, in *TransferLeadershipRequest, opts ...grpc.CallOption) (*TransferLeadershipResponse, error) GetLeader(ctx context.Context, in *GetLeaderRequest, opts ...grpc.CallOption) (*GetLeaderResponse, error) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) }
CosignerClient is the client API for Cosigner service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCosignerClient ¶
func NewCosignerClient(cc grpc1.ClientConn) CosignerClient
type CosignerServer ¶
type CosignerServer interface { SignBlock(context.Context, *SignBlockRequest) (*SignBlockResponse, error) SetNoncesAndSign(context.Context, *SetNoncesAndSignRequest) (*SetNoncesAndSignResponse, error) GetNonces(context.Context, *GetNoncesRequest) (*GetNoncesResponse, error) TransferLeadership(context.Context, *TransferLeadershipRequest) (*TransferLeadershipResponse, error) GetLeader(context.Context, *GetLeaderRequest) (*GetLeaderResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) }
CosignerServer is the server API for Cosigner service.
type GetLeaderRequest ¶
type GetLeaderRequest struct { }
func (*GetLeaderRequest) Descriptor ¶
func (*GetLeaderRequest) Descriptor() ([]byte, []int)
func (*GetLeaderRequest) Marshal ¶
func (m *GetLeaderRequest) Marshal() (dAtA []byte, err error)
func (*GetLeaderRequest) MarshalToSizedBuffer ¶
func (m *GetLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLeaderRequest) ProtoMessage ¶
func (*GetLeaderRequest) ProtoMessage()
func (*GetLeaderRequest) Reset ¶
func (m *GetLeaderRequest) Reset()
func (*GetLeaderRequest) Size ¶
func (m *GetLeaderRequest) Size() (n int)
func (*GetLeaderRequest) String ¶
func (m *GetLeaderRequest) String() string
func (*GetLeaderRequest) Unmarshal ¶
func (m *GetLeaderRequest) Unmarshal(dAtA []byte) error
func (*GetLeaderRequest) XXX_DiscardUnknown ¶
func (m *GetLeaderRequest) XXX_DiscardUnknown()
func (*GetLeaderRequest) XXX_Marshal ¶
func (m *GetLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLeaderRequest) XXX_Merge ¶
func (m *GetLeaderRequest) XXX_Merge(src proto.Message)
func (*GetLeaderRequest) XXX_Size ¶
func (m *GetLeaderRequest) XXX_Size() int
func (*GetLeaderRequest) XXX_Unmarshal ¶
func (m *GetLeaderRequest) XXX_Unmarshal(b []byte) error
type GetLeaderResponse ¶
type GetLeaderResponse struct {
Leader int32 `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"`
}
func (*GetLeaderResponse) Descriptor ¶
func (*GetLeaderResponse) Descriptor() ([]byte, []int)
func (*GetLeaderResponse) GetLeader ¶
func (m *GetLeaderResponse) GetLeader() int32
func (*GetLeaderResponse) Marshal ¶
func (m *GetLeaderResponse) Marshal() (dAtA []byte, err error)
func (*GetLeaderResponse) MarshalTo ¶
func (m *GetLeaderResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetLeaderResponse) MarshalToSizedBuffer ¶
func (m *GetLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetLeaderResponse) ProtoMessage ¶
func (*GetLeaderResponse) ProtoMessage()
func (*GetLeaderResponse) Reset ¶
func (m *GetLeaderResponse) Reset()
func (*GetLeaderResponse) Size ¶
func (m *GetLeaderResponse) Size() (n int)
func (*GetLeaderResponse) String ¶
func (m *GetLeaderResponse) String() string
func (*GetLeaderResponse) Unmarshal ¶
func (m *GetLeaderResponse) Unmarshal(dAtA []byte) error
func (*GetLeaderResponse) XXX_DiscardUnknown ¶
func (m *GetLeaderResponse) XXX_DiscardUnknown()
func (*GetLeaderResponse) XXX_Marshal ¶
func (m *GetLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLeaderResponse) XXX_Merge ¶
func (m *GetLeaderResponse) XXX_Merge(src proto.Message)
func (*GetLeaderResponse) XXX_Size ¶
func (m *GetLeaderResponse) XXX_Size() int
func (*GetLeaderResponse) XXX_Unmarshal ¶
func (m *GetLeaderResponse) XXX_Unmarshal(b []byte) error
type GetNoncesRequest ¶
type GetNoncesRequest struct {
Uuids [][]byte `protobuf:"bytes,1,rep,name=uuids,proto3" json:"uuids,omitempty"`
}
func (*GetNoncesRequest) Descriptor ¶
func (*GetNoncesRequest) Descriptor() ([]byte, []int)
func (*GetNoncesRequest) GetUuids ¶
func (m *GetNoncesRequest) GetUuids() [][]byte
func (*GetNoncesRequest) Marshal ¶
func (m *GetNoncesRequest) Marshal() (dAtA []byte, err error)
func (*GetNoncesRequest) MarshalToSizedBuffer ¶
func (m *GetNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNoncesRequest) ProtoMessage ¶
func (*GetNoncesRequest) ProtoMessage()
func (*GetNoncesRequest) Reset ¶
func (m *GetNoncesRequest) Reset()
func (*GetNoncesRequest) Size ¶
func (m *GetNoncesRequest) Size() (n int)
func (*GetNoncesRequest) String ¶
func (m *GetNoncesRequest) String() string
func (*GetNoncesRequest) Unmarshal ¶
func (m *GetNoncesRequest) Unmarshal(dAtA []byte) error
func (*GetNoncesRequest) XXX_DiscardUnknown ¶
func (m *GetNoncesRequest) XXX_DiscardUnknown()
func (*GetNoncesRequest) XXX_Marshal ¶
func (m *GetNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNoncesRequest) XXX_Merge ¶
func (m *GetNoncesRequest) XXX_Merge(src proto.Message)
func (*GetNoncesRequest) XXX_Size ¶
func (m *GetNoncesRequest) XXX_Size() int
func (*GetNoncesRequest) XXX_Unmarshal ¶
func (m *GetNoncesRequest) XXX_Unmarshal(b []byte) error
type GetNoncesResponse ¶
type GetNoncesResponse struct {
Nonces []*UUIDNonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"`
}
func (*GetNoncesResponse) Descriptor ¶
func (*GetNoncesResponse) Descriptor() ([]byte, []int)
func (*GetNoncesResponse) GetNonces ¶
func (m *GetNoncesResponse) GetNonces() []*UUIDNonce
func (*GetNoncesResponse) Marshal ¶
func (m *GetNoncesResponse) Marshal() (dAtA []byte, err error)
func (*GetNoncesResponse) MarshalTo ¶
func (m *GetNoncesResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetNoncesResponse) MarshalToSizedBuffer ¶
func (m *GetNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetNoncesResponse) ProtoMessage ¶
func (*GetNoncesResponse) ProtoMessage()
func (*GetNoncesResponse) Reset ¶
func (m *GetNoncesResponse) Reset()
func (*GetNoncesResponse) Size ¶
func (m *GetNoncesResponse) Size() (n int)
func (*GetNoncesResponse) String ¶
func (m *GetNoncesResponse) String() string
func (*GetNoncesResponse) Unmarshal ¶
func (m *GetNoncesResponse) Unmarshal(dAtA []byte) error
func (*GetNoncesResponse) XXX_DiscardUnknown ¶
func (m *GetNoncesResponse) XXX_DiscardUnknown()
func (*GetNoncesResponse) XXX_Marshal ¶
func (m *GetNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetNoncesResponse) XXX_Merge ¶
func (m *GetNoncesResponse) XXX_Merge(src proto.Message)
func (*GetNoncesResponse) XXX_Size ¶
func (m *GetNoncesResponse) XXX_Size() int
func (*GetNoncesResponse) XXX_Unmarshal ¶
func (m *GetNoncesResponse) XXX_Unmarshal(b []byte) error
type HRST ¶
type HRST 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"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*HRST) Descriptor ¶
func (*HRST) GetTimestamp ¶
func (*HRST) ProtoMessage ¶
func (*HRST) ProtoMessage()
func (*HRST) XXX_DiscardUnknown ¶
func (m *HRST) XXX_DiscardUnknown()
func (*HRST) XXX_Unmarshal ¶
type Nonce ¶
type Nonce struct { SourceID int32 `protobuf:"varint,1,opt,name=sourceID,proto3" json:"sourceID,omitempty"` DestinationID int32 `protobuf:"varint,2,opt,name=destinationID,proto3" json:"destinationID,omitempty"` PubKey []byte `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*Nonce) Descriptor ¶
func (*Nonce) GetDestinationID ¶
func (*Nonce) GetSignature ¶
func (*Nonce) GetSourceID ¶
func (*Nonce) ProtoMessage ¶
func (*Nonce) ProtoMessage()
func (*Nonce) XXX_DiscardUnknown ¶
func (m *Nonce) XXX_DiscardUnknown()
func (*Nonce) XXX_Marshal ¶
func (*Nonce) XXX_Unmarshal ¶
type PingRequest ¶
type PingRequest struct { }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) Marshal ¶
func (m *PingRequest) Marshal() (dAtA []byte, err error)
func (*PingRequest) MarshalToSizedBuffer ¶
func (m *PingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) Size ¶
func (m *PingRequest) Size() (n int)
func (*PingRequest) String ¶
func (m *PingRequest) String() string
func (*PingRequest) Unmarshal ¶
func (m *PingRequest) Unmarshal(dAtA []byte) error
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 { }
func (*PingResponse) Descriptor ¶
func (*PingResponse) Descriptor() ([]byte, []int)
func (*PingResponse) Marshal ¶
func (m *PingResponse) Marshal() (dAtA []byte, err error)
func (*PingResponse) MarshalToSizedBuffer ¶
func (m *PingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) Size ¶
func (m *PingResponse) Size() (n int)
func (*PingResponse) String ¶
func (m *PingResponse) String() string
func (*PingResponse) Unmarshal ¶
func (m *PingResponse) Unmarshal(dAtA []byte) error
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 {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}
func (*PubKeyRequest) Descriptor ¶
func (*PubKeyRequest) Descriptor() ([]byte, []int)
func (*PubKeyRequest) GetChainId ¶
func (m *PubKeyRequest) GetChainId() string
func (*PubKeyRequest) Marshal ¶
func (m *PubKeyRequest) Marshal() (dAtA []byte, err error)
func (*PubKeyRequest) MarshalToSizedBuffer ¶
func (m *PubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PubKeyRequest) ProtoMessage ¶
func (*PubKeyRequest) ProtoMessage()
func (*PubKeyRequest) Reset ¶
func (m *PubKeyRequest) Reset()
func (*PubKeyRequest) Size ¶
func (m *PubKeyRequest) Size() (n int)
func (*PubKeyRequest) String ¶
func (m *PubKeyRequest) String() string
func (*PubKeyRequest) Unmarshal ¶
func (m *PubKeyRequest) Unmarshal(dAtA []byte) error
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 []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
}
func (*PubKeyResponse) Descriptor ¶
func (*PubKeyResponse) Descriptor() ([]byte, []int)
func (*PubKeyResponse) GetPubKey ¶
func (m *PubKeyResponse) GetPubKey() []byte
func (*PubKeyResponse) Marshal ¶
func (m *PubKeyResponse) Marshal() (dAtA []byte, err error)
func (*PubKeyResponse) MarshalToSizedBuffer ¶
func (m *PubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PubKeyResponse) ProtoMessage ¶
func (*PubKeyResponse) ProtoMessage()
func (*PubKeyResponse) Reset ¶
func (m *PubKeyResponse) Reset()
func (*PubKeyResponse) Size ¶
func (m *PubKeyResponse) Size() (n int)
func (*PubKeyResponse) String ¶
func (m *PubKeyResponse) String() string
func (*PubKeyResponse) Unmarshal ¶
func (m *PubKeyResponse) Unmarshal(dAtA []byte) error
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 RemoteSignerClient ¶
type RemoteSignerClient interface { PubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error) Sign(ctx context.Context, in *SignBlockRequest, opts ...grpc.CallOption) (*SignBlockResponse, 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 grpc1.ClientConn) RemoteSignerClient
type RemoteSignerServer ¶
type RemoteSignerServer interface { PubKey(context.Context, *PubKeyRequest) (*PubKeyResponse, error) Sign(context.Context, *SignBlockRequest) (*SignBlockResponse, error) }
RemoteSignerServer is the server API for RemoteSigner service.
type SetNoncesAndSignRequest ¶
type SetNoncesAndSignRequest struct { Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Nonces []*Nonce `protobuf:"bytes,2,rep,name=nonces,proto3" json:"nonces,omitempty"` Hrst *HRST `protobuf:"bytes,3,opt,name=hrst,proto3" json:"hrst,omitempty"` SignBytes []byte `protobuf:"bytes,4,opt,name=signBytes,proto3" json:"signBytes,omitempty"` VoteExtUuid []byte `protobuf:"bytes,5,opt,name=voteExtUuid,proto3" json:"voteExtUuid,omitempty"` VoteExtNonces []*Nonce `protobuf:"bytes,6,rep,name=voteExtNonces,proto3" json:"voteExtNonces,omitempty"` VoteExtSignBytes []byte `protobuf:"bytes,7,opt,name=voteExtSignBytes,proto3" json:"voteExtSignBytes,omitempty"` ChainID string `protobuf:"bytes,8,opt,name=chainID,proto3" json:"chainID,omitempty"` }
func (*SetNoncesAndSignRequest) Descriptor ¶
func (*SetNoncesAndSignRequest) Descriptor() ([]byte, []int)
func (*SetNoncesAndSignRequest) GetChainID ¶
func (m *SetNoncesAndSignRequest) GetChainID() string
func (*SetNoncesAndSignRequest) GetHrst ¶
func (m *SetNoncesAndSignRequest) GetHrst() *HRST
func (*SetNoncesAndSignRequest) GetNonces ¶
func (m *SetNoncesAndSignRequest) GetNonces() []*Nonce
func (*SetNoncesAndSignRequest) GetSignBytes ¶
func (m *SetNoncesAndSignRequest) GetSignBytes() []byte
func (*SetNoncesAndSignRequest) GetUuid ¶
func (m *SetNoncesAndSignRequest) GetUuid() []byte
func (*SetNoncesAndSignRequest) GetVoteExtNonces ¶
func (m *SetNoncesAndSignRequest) GetVoteExtNonces() []*Nonce
func (*SetNoncesAndSignRequest) GetVoteExtSignBytes ¶
func (m *SetNoncesAndSignRequest) GetVoteExtSignBytes() []byte
func (*SetNoncesAndSignRequest) GetVoteExtUuid ¶
func (m *SetNoncesAndSignRequest) GetVoteExtUuid() []byte
func (*SetNoncesAndSignRequest) Marshal ¶
func (m *SetNoncesAndSignRequest) Marshal() (dAtA []byte, err error)
func (*SetNoncesAndSignRequest) MarshalTo ¶
func (m *SetNoncesAndSignRequest) MarshalTo(dAtA []byte) (int, error)
func (*SetNoncesAndSignRequest) MarshalToSizedBuffer ¶
func (m *SetNoncesAndSignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetNoncesAndSignRequest) ProtoMessage ¶
func (*SetNoncesAndSignRequest) ProtoMessage()
func (*SetNoncesAndSignRequest) Reset ¶
func (m *SetNoncesAndSignRequest) Reset()
func (*SetNoncesAndSignRequest) Size ¶
func (m *SetNoncesAndSignRequest) Size() (n int)
func (*SetNoncesAndSignRequest) String ¶
func (m *SetNoncesAndSignRequest) String() string
func (*SetNoncesAndSignRequest) Unmarshal ¶
func (m *SetNoncesAndSignRequest) Unmarshal(dAtA []byte) error
func (*SetNoncesAndSignRequest) XXX_DiscardUnknown ¶
func (m *SetNoncesAndSignRequest) XXX_DiscardUnknown()
func (*SetNoncesAndSignRequest) XXX_Marshal ¶
func (m *SetNoncesAndSignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetNoncesAndSignRequest) XXX_Merge ¶
func (m *SetNoncesAndSignRequest) XXX_Merge(src proto.Message)
func (*SetNoncesAndSignRequest) XXX_Size ¶
func (m *SetNoncesAndSignRequest) XXX_Size() int
func (*SetNoncesAndSignRequest) XXX_Unmarshal ¶
func (m *SetNoncesAndSignRequest) XXX_Unmarshal(b []byte) error
type SetNoncesAndSignResponse ¶
type SetNoncesAndSignResponse struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` NoncePublic []byte `protobuf:"bytes,2,opt,name=noncePublic,proto3" json:"noncePublic,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` VoteExtNoncePublic []byte `protobuf:"bytes,4,opt,name=voteExtNoncePublic,proto3" json:"voteExtNoncePublic,omitempty"` VoteExtSignature []byte `protobuf:"bytes,5,opt,name=voteExtSignature,proto3" json:"voteExtSignature,omitempty"` }
func (*SetNoncesAndSignResponse) Descriptor ¶
func (*SetNoncesAndSignResponse) Descriptor() ([]byte, []int)
func (*SetNoncesAndSignResponse) GetNoncePublic ¶
func (m *SetNoncesAndSignResponse) GetNoncePublic() []byte
func (*SetNoncesAndSignResponse) GetSignature ¶
func (m *SetNoncesAndSignResponse) GetSignature() []byte
func (*SetNoncesAndSignResponse) GetTimestamp ¶
func (m *SetNoncesAndSignResponse) GetTimestamp() int64
func (*SetNoncesAndSignResponse) GetVoteExtNoncePublic ¶
func (m *SetNoncesAndSignResponse) GetVoteExtNoncePublic() []byte
func (*SetNoncesAndSignResponse) GetVoteExtSignature ¶
func (m *SetNoncesAndSignResponse) GetVoteExtSignature() []byte
func (*SetNoncesAndSignResponse) Marshal ¶
func (m *SetNoncesAndSignResponse) Marshal() (dAtA []byte, err error)
func (*SetNoncesAndSignResponse) MarshalTo ¶
func (m *SetNoncesAndSignResponse) MarshalTo(dAtA []byte) (int, error)
func (*SetNoncesAndSignResponse) MarshalToSizedBuffer ¶
func (m *SetNoncesAndSignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetNoncesAndSignResponse) ProtoMessage ¶
func (*SetNoncesAndSignResponse) ProtoMessage()
func (*SetNoncesAndSignResponse) Reset ¶
func (m *SetNoncesAndSignResponse) Reset()
func (*SetNoncesAndSignResponse) Size ¶
func (m *SetNoncesAndSignResponse) Size() (n int)
func (*SetNoncesAndSignResponse) String ¶
func (m *SetNoncesAndSignResponse) String() string
func (*SetNoncesAndSignResponse) Unmarshal ¶
func (m *SetNoncesAndSignResponse) Unmarshal(dAtA []byte) error
func (*SetNoncesAndSignResponse) XXX_DiscardUnknown ¶
func (m *SetNoncesAndSignResponse) XXX_DiscardUnknown()
func (*SetNoncesAndSignResponse) XXX_Marshal ¶
func (m *SetNoncesAndSignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetNoncesAndSignResponse) XXX_Merge ¶
func (m *SetNoncesAndSignResponse) XXX_Merge(src proto.Message)
func (*SetNoncesAndSignResponse) XXX_Size ¶
func (m *SetNoncesAndSignResponse) XXX_Size() int
func (*SetNoncesAndSignResponse) XXX_Unmarshal ¶
func (m *SetNoncesAndSignResponse) XXX_Unmarshal(b []byte) error
type SignBlockRequest ¶
type SignBlockRequest struct { ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` Block *Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` }
func (*SignBlockRequest) Descriptor ¶
func (*SignBlockRequest) Descriptor() ([]byte, []int)
func (*SignBlockRequest) GetBlock ¶
func (m *SignBlockRequest) GetBlock() *Block
func (*SignBlockRequest) GetChainID ¶
func (m *SignBlockRequest) GetChainID() string
func (*SignBlockRequest) Marshal ¶
func (m *SignBlockRequest) Marshal() (dAtA []byte, err error)
func (*SignBlockRequest) MarshalToSizedBuffer ¶
func (m *SignBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignBlockRequest) ProtoMessage ¶
func (*SignBlockRequest) ProtoMessage()
func (*SignBlockRequest) Reset ¶
func (m *SignBlockRequest) Reset()
func (*SignBlockRequest) Size ¶
func (m *SignBlockRequest) Size() (n int)
func (*SignBlockRequest) String ¶
func (m *SignBlockRequest) String() string
func (*SignBlockRequest) Unmarshal ¶
func (m *SignBlockRequest) Unmarshal(dAtA []byte) error
func (*SignBlockRequest) XXX_DiscardUnknown ¶
func (m *SignBlockRequest) XXX_DiscardUnknown()
func (*SignBlockRequest) XXX_Marshal ¶
func (m *SignBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignBlockRequest) XXX_Merge ¶
func (m *SignBlockRequest) XXX_Merge(src proto.Message)
func (*SignBlockRequest) XXX_Size ¶
func (m *SignBlockRequest) XXX_Size() int
func (*SignBlockRequest) XXX_Unmarshal ¶
func (m *SignBlockRequest) XXX_Unmarshal(b []byte) error
type SignBlockResponse ¶
type SignBlockResponse struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` VoteExtSignature []byte `protobuf:"bytes,2,opt,name=vote_ext_signature,json=voteExtSignature,proto3" json:"vote_ext_signature,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*SignBlockResponse) Descriptor ¶
func (*SignBlockResponse) Descriptor() ([]byte, []int)
func (*SignBlockResponse) GetSignature ¶
func (m *SignBlockResponse) GetSignature() []byte
func (*SignBlockResponse) GetTimestamp ¶
func (m *SignBlockResponse) GetTimestamp() int64
func (*SignBlockResponse) GetVoteExtSignature ¶
func (m *SignBlockResponse) GetVoteExtSignature() []byte
func (*SignBlockResponse) Marshal ¶
func (m *SignBlockResponse) Marshal() (dAtA []byte, err error)
func (*SignBlockResponse) MarshalTo ¶
func (m *SignBlockResponse) MarshalTo(dAtA []byte) (int, error)
func (*SignBlockResponse) MarshalToSizedBuffer ¶
func (m *SignBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignBlockResponse) ProtoMessage ¶
func (*SignBlockResponse) ProtoMessage()
func (*SignBlockResponse) Reset ¶
func (m *SignBlockResponse) Reset()
func (*SignBlockResponse) Size ¶
func (m *SignBlockResponse) Size() (n int)
func (*SignBlockResponse) String ¶
func (m *SignBlockResponse) String() string
func (*SignBlockResponse) Unmarshal ¶
func (m *SignBlockResponse) Unmarshal(dAtA []byte) error
func (*SignBlockResponse) XXX_DiscardUnknown ¶
func (m *SignBlockResponse) XXX_DiscardUnknown()
func (*SignBlockResponse) XXX_Marshal ¶
func (m *SignBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignBlockResponse) XXX_Merge ¶
func (m *SignBlockResponse) XXX_Merge(src proto.Message)
func (*SignBlockResponse) XXX_Size ¶
func (m *SignBlockResponse) XXX_Size() int
func (*SignBlockResponse) XXX_Unmarshal ¶
func (m *SignBlockResponse) XXX_Unmarshal(b []byte) error
type TransferLeadershipRequest ¶
type TransferLeadershipRequest struct {
LeaderID string `protobuf:"bytes,1,opt,name=leaderID,proto3" json:"leaderID,omitempty"`
}
func (*TransferLeadershipRequest) Descriptor ¶
func (*TransferLeadershipRequest) Descriptor() ([]byte, []int)
func (*TransferLeadershipRequest) GetLeaderID ¶
func (m *TransferLeadershipRequest) GetLeaderID() string
func (*TransferLeadershipRequest) Marshal ¶
func (m *TransferLeadershipRequest) Marshal() (dAtA []byte, err error)
func (*TransferLeadershipRequest) MarshalTo ¶
func (m *TransferLeadershipRequest) MarshalTo(dAtA []byte) (int, error)
func (*TransferLeadershipRequest) MarshalToSizedBuffer ¶
func (m *TransferLeadershipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransferLeadershipRequest) ProtoMessage ¶
func (*TransferLeadershipRequest) ProtoMessage()
func (*TransferLeadershipRequest) Reset ¶
func (m *TransferLeadershipRequest) Reset()
func (*TransferLeadershipRequest) Size ¶
func (m *TransferLeadershipRequest) Size() (n int)
func (*TransferLeadershipRequest) String ¶
func (m *TransferLeadershipRequest) String() string
func (*TransferLeadershipRequest) Unmarshal ¶
func (m *TransferLeadershipRequest) Unmarshal(dAtA []byte) error
func (*TransferLeadershipRequest) XXX_DiscardUnknown ¶
func (m *TransferLeadershipRequest) XXX_DiscardUnknown()
func (*TransferLeadershipRequest) XXX_Marshal ¶
func (m *TransferLeadershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferLeadershipRequest) XXX_Merge ¶
func (m *TransferLeadershipRequest) XXX_Merge(src proto.Message)
func (*TransferLeadershipRequest) XXX_Size ¶
func (m *TransferLeadershipRequest) XXX_Size() int
func (*TransferLeadershipRequest) XXX_Unmarshal ¶
func (m *TransferLeadershipRequest) XXX_Unmarshal(b []byte) error
type TransferLeadershipResponse ¶
type TransferLeadershipResponse struct { LeaderID string `protobuf:"bytes,1,opt,name=leaderID,proto3" json:"leaderID,omitempty"` LeaderAddress string `protobuf:"bytes,2,opt,name=leaderAddress,proto3" json:"leaderAddress,omitempty"` }
func (*TransferLeadershipResponse) Descriptor ¶
func (*TransferLeadershipResponse) Descriptor() ([]byte, []int)
func (*TransferLeadershipResponse) GetLeaderAddress ¶
func (m *TransferLeadershipResponse) GetLeaderAddress() string
func (*TransferLeadershipResponse) GetLeaderID ¶
func (m *TransferLeadershipResponse) GetLeaderID() string
func (*TransferLeadershipResponse) Marshal ¶
func (m *TransferLeadershipResponse) Marshal() (dAtA []byte, err error)
func (*TransferLeadershipResponse) MarshalTo ¶
func (m *TransferLeadershipResponse) MarshalTo(dAtA []byte) (int, error)
func (*TransferLeadershipResponse) MarshalToSizedBuffer ¶
func (m *TransferLeadershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransferLeadershipResponse) ProtoMessage ¶
func (*TransferLeadershipResponse) ProtoMessage()
func (*TransferLeadershipResponse) Reset ¶
func (m *TransferLeadershipResponse) Reset()
func (*TransferLeadershipResponse) Size ¶
func (m *TransferLeadershipResponse) Size() (n int)
func (*TransferLeadershipResponse) String ¶
func (m *TransferLeadershipResponse) String() string
func (*TransferLeadershipResponse) Unmarshal ¶
func (m *TransferLeadershipResponse) Unmarshal(dAtA []byte) error
func (*TransferLeadershipResponse) XXX_DiscardUnknown ¶
func (m *TransferLeadershipResponse) XXX_DiscardUnknown()
func (*TransferLeadershipResponse) XXX_Marshal ¶
func (m *TransferLeadershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferLeadershipResponse) XXX_Merge ¶
func (m *TransferLeadershipResponse) XXX_Merge(src proto.Message)
func (*TransferLeadershipResponse) XXX_Size ¶
func (m *TransferLeadershipResponse) XXX_Size() int
func (*TransferLeadershipResponse) XXX_Unmarshal ¶
func (m *TransferLeadershipResponse) XXX_Unmarshal(b []byte) error
type UUIDNonce ¶
type UUIDNonce struct { Uuid []byte `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Nonces []*Nonce `protobuf:"bytes,2,rep,name=nonces,proto3" json:"nonces,omitempty"` }
func (*UUIDNonce) Descriptor ¶
func (*UUIDNonce) MarshalToSizedBuffer ¶
func (*UUIDNonce) ProtoMessage ¶
func (*UUIDNonce) ProtoMessage()
func (*UUIDNonce) XXX_DiscardUnknown ¶
func (m *UUIDNonce) XXX_DiscardUnknown()
func (*UUIDNonce) XXX_Marshal ¶
func (*UUIDNonce) XXX_Unmarshal ¶
type UnimplementedCosignerServer ¶
type UnimplementedCosignerServer struct { }
UnimplementedCosignerServer can be embedded to have forward compatible implementations.
func (*UnimplementedCosignerServer) GetLeader ¶
func (*UnimplementedCosignerServer) GetLeader(ctx context.Context, req *GetLeaderRequest) (*GetLeaderResponse, error)
func (*UnimplementedCosignerServer) GetNonces ¶
func (*UnimplementedCosignerServer) GetNonces(ctx context.Context, req *GetNoncesRequest) (*GetNoncesResponse, error)
func (*UnimplementedCosignerServer) Ping ¶
func (*UnimplementedCosignerServer) Ping(ctx context.Context, req *PingRequest) (*PingResponse, error)
func (*UnimplementedCosignerServer) SetNoncesAndSign ¶
func (*UnimplementedCosignerServer) SetNoncesAndSign(ctx context.Context, req *SetNoncesAndSignRequest) (*SetNoncesAndSignResponse, error)
func (*UnimplementedCosignerServer) SignBlock ¶
func (*UnimplementedCosignerServer) SignBlock(ctx context.Context, req *SignBlockRequest) (*SignBlockResponse, error)
func (*UnimplementedCosignerServer) TransferLeadership ¶
func (*UnimplementedCosignerServer) TransferLeadership(ctx context.Context, req *TransferLeadershipRequest) (*TransferLeadershipResponse, error)
type UnimplementedRemoteSignerServer ¶
type UnimplementedRemoteSignerServer struct { }
UnimplementedRemoteSignerServer can be embedded to have forward compatible implementations.
func (*UnimplementedRemoteSignerServer) PubKey ¶
func (*UnimplementedRemoteSignerServer) PubKey(ctx context.Context, req *PubKeyRequest) (*PubKeyResponse, error)
func (*UnimplementedRemoteSignerServer) Sign ¶
func (*UnimplementedRemoteSignerServer) Sign(ctx context.Context, req *SignBlockRequest) (*SignBlockResponse, error)