Documentation
¶
Index ¶
- Variables
- func GetDeterministicAttestationBytes(cdc codec.BinaryCodec, dataToAttestTo IBCData) []byte
- func RegisterSidecarServer(s grpc1.Server, srv SidecarServer)
- type Attestation
- func (*Attestation) Descriptor() ([]byte, []int)
- func (m *Attestation) GetAttestatorId() []byte
- func (m *Attestation) GetAttestedData() IBCData
- func (m *Attestation) Marshal() (dAtA []byte, err error)
- func (m *Attestation) MarshalTo(dAtA []byte) (int, error)
- func (m *Attestation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Attestation) ProtoMessage()
- func (m *Attestation) Reset()
- func (m *Attestation) Size() (n int)
- func (m *Attestation) String() string
- func (m *Attestation) Unmarshal(dAtA []byte) error
- func (m *Attestation) XXX_DiscardUnknown()
- func (m *Attestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attestation) XXX_Merge(src proto.Message)
- func (m *Attestation) XXX_Size() int
- func (m *Attestation) XXX_Unmarshal(b []byte) error
- type AttestatorRegistration
- type AttestatorRegistrationJson
- type GetAttestationsRequest
- func (*GetAttestationsRequest) Descriptor() ([]byte, []int)
- func (m *GetAttestationsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetAttestationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAttestationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAttestationsRequest) ProtoMessage()
- func (m *GetAttestationsRequest) Reset()
- func (m *GetAttestationsRequest) Size() (n int)
- func (m *GetAttestationsRequest) String() string
- func (m *GetAttestationsRequest) Unmarshal(dAtA []byte) error
- func (m *GetAttestationsRequest) XXX_DiscardUnknown()
- func (m *GetAttestationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAttestationsRequest) XXX_Merge(src proto.Message)
- func (m *GetAttestationsRequest) XXX_Size() int
- func (m *GetAttestationsRequest) XXX_Unmarshal(b []byte) error
- type GetAttestationsResponse
- func (*GetAttestationsResponse) Descriptor() ([]byte, []int)
- func (m *GetAttestationsResponse) GetAttestations() []Attestation
- func (m *GetAttestationsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetAttestationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetAttestationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetAttestationsResponse) ProtoMessage()
- func (m *GetAttestationsResponse) Reset()
- func (m *GetAttestationsResponse) Size() (n int)
- func (m *GetAttestationsResponse) String() string
- func (m *GetAttestationsResponse) Unmarshal(dAtA []byte) error
- func (m *GetAttestationsResponse) XXX_DiscardUnknown()
- func (m *GetAttestationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAttestationsResponse) XXX_Merge(src proto.Message)
- func (m *GetAttestationsResponse) XXX_Size() int
- func (m *GetAttestationsResponse) XXX_Unmarshal(b []byte) error
- type IBCData
- func (*IBCData) Descriptor() ([]byte, []int)
- func (m *IBCData) GetChainId() string
- func (m *IBCData) GetClientId() string
- func (m *IBCData) GetClientToUpdate() string
- func (m *IBCData) GetHeight() types.Height
- func (m *IBCData) GetPacketCommitments() [][]byte
- func (m *IBCData) GetTimestamp() time.Time
- func (m *IBCData) Marshal() (dAtA []byte, err error)
- func (m *IBCData) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBCData) ProtoMessage()
- func (m *IBCData) Reset()
- func (m *IBCData) Size() (n int)
- func (m *IBCData) String() string
- func (m *IBCData) Unmarshal(dAtA []byte) error
- func (m *IBCData) XXX_DiscardUnknown()
- func (m *IBCData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCData) XXX_Merge(src proto.Message)
- func (m *IBCData) XXX_Size() int
- func (m *IBCData) XXX_Unmarshal(b []byte) error
- type SidecarClient
- type SidecarServer
- type UnimplementedSidecarServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetDeterministicAttestationBytes ¶
func GetDeterministicAttestationBytes(cdc codec.BinaryCodec, dataToAttestTo IBCData) []byte
func RegisterSidecarServer ¶
func RegisterSidecarServer(s grpc1.Server, srv SidecarServer)
Types ¶
type Attestation ¶
type Attestation struct { AttestatorId []byte `protobuf:"bytes,1,opt,name=attestator_id,json=attestatorId,proto3" json:"attestator_id,omitempty"` AttestedData IBCData `protobuf:"bytes,2,opt,name=attested_data,json=attestedData,proto3" json:"attested_data"` }
func (*Attestation) Descriptor ¶
func (*Attestation) Descriptor() ([]byte, []int)
func (*Attestation) GetAttestatorId ¶
func (m *Attestation) GetAttestatorId() []byte
func (*Attestation) GetAttestedData ¶
func (m *Attestation) GetAttestedData() IBCData
func (*Attestation) Marshal ¶
func (m *Attestation) Marshal() (dAtA []byte, err error)
func (*Attestation) MarshalToSizedBuffer ¶
func (m *Attestation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Attestation) ProtoMessage ¶
func (*Attestation) ProtoMessage()
func (*Attestation) Reset ¶
func (m *Attestation) Reset()
func (*Attestation) Size ¶
func (m *Attestation) Size() (n int)
func (*Attestation) String ¶
func (m *Attestation) String() string
func (*Attestation) Unmarshal ¶
func (m *Attestation) Unmarshal(dAtA []byte) error
func (*Attestation) XXX_DiscardUnknown ¶
func (m *Attestation) XXX_DiscardUnknown()
func (*Attestation) XXX_Marshal ¶
func (m *Attestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Attestation) XXX_Merge ¶
func (m *Attestation) XXX_Merge(src proto.Message)
func (*Attestation) XXX_Size ¶
func (m *Attestation) XXX_Size() int
func (*Attestation) XXX_Unmarshal ¶
func (m *Attestation) XXX_Unmarshal(b []byte) error
type AttestatorRegistration ¶
type AttestatorRegistration struct { AttestatorID []byte AttestationPublicKey *codectypes.Any }
func ParseAndValidateAttestationRegistrationJSONFromFile ¶
func ParseAndValidateAttestationRegistrationJSONFromFile(cdc codec.Codec, path string) (AttestatorRegistration, error)
func UnmarshalAttestationRegistrationJSON ¶
func UnmarshalAttestationRegistrationJSON(cdc codec.Codec, bz []byte) (AttestatorRegistration, error)
func (AttestatorRegistration) Validate ¶
func (a AttestatorRegistration) Validate() error
type AttestatorRegistrationJson ¶
type AttestatorRegistrationJson struct { AttestatorID string `json:"attestator-id"` AttestationPublicKey json.RawMessage `json:"attestation-public-key"` }
type GetAttestationsRequest ¶
type GetAttestationsRequest struct { }
func (*GetAttestationsRequest) Descriptor ¶
func (*GetAttestationsRequest) Descriptor() ([]byte, []int)
func (*GetAttestationsRequest) Marshal ¶
func (m *GetAttestationsRequest) Marshal() (dAtA []byte, err error)
func (*GetAttestationsRequest) MarshalTo ¶
func (m *GetAttestationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetAttestationsRequest) MarshalToSizedBuffer ¶
func (m *GetAttestationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAttestationsRequest) ProtoMessage ¶
func (*GetAttestationsRequest) ProtoMessage()
func (*GetAttestationsRequest) Reset ¶
func (m *GetAttestationsRequest) Reset()
func (*GetAttestationsRequest) Size ¶
func (m *GetAttestationsRequest) Size() (n int)
func (*GetAttestationsRequest) String ¶
func (m *GetAttestationsRequest) String() string
func (*GetAttestationsRequest) Unmarshal ¶
func (m *GetAttestationsRequest) Unmarshal(dAtA []byte) error
func (*GetAttestationsRequest) XXX_DiscardUnknown ¶
func (m *GetAttestationsRequest) XXX_DiscardUnknown()
func (*GetAttestationsRequest) XXX_Marshal ¶
func (m *GetAttestationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAttestationsRequest) XXX_Merge ¶
func (m *GetAttestationsRequest) XXX_Merge(src proto.Message)
func (*GetAttestationsRequest) XXX_Size ¶
func (m *GetAttestationsRequest) XXX_Size() int
func (*GetAttestationsRequest) XXX_Unmarshal ¶
func (m *GetAttestationsRequest) XXX_Unmarshal(b []byte) error
type GetAttestationsResponse ¶
type GetAttestationsResponse struct { // one attestation for every chain configured in the sidecar Attestations []Attestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations"` }
func (*GetAttestationsResponse) Descriptor ¶
func (*GetAttestationsResponse) Descriptor() ([]byte, []int)
func (*GetAttestationsResponse) GetAttestations ¶
func (m *GetAttestationsResponse) GetAttestations() []Attestation
func (*GetAttestationsResponse) Marshal ¶
func (m *GetAttestationsResponse) Marshal() (dAtA []byte, err error)
func (*GetAttestationsResponse) MarshalTo ¶
func (m *GetAttestationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetAttestationsResponse) MarshalToSizedBuffer ¶
func (m *GetAttestationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetAttestationsResponse) ProtoMessage ¶
func (*GetAttestationsResponse) ProtoMessage()
func (*GetAttestationsResponse) Reset ¶
func (m *GetAttestationsResponse) Reset()
func (*GetAttestationsResponse) Size ¶
func (m *GetAttestationsResponse) Size() (n int)
func (*GetAttestationsResponse) String ¶
func (m *GetAttestationsResponse) String() string
func (*GetAttestationsResponse) Unmarshal ¶
func (m *GetAttestationsResponse) Unmarshal(dAtA []byte) error
func (*GetAttestationsResponse) XXX_DiscardUnknown ¶
func (m *GetAttestationsResponse) XXX_DiscardUnknown()
func (*GetAttestationsResponse) XXX_Marshal ¶
func (m *GetAttestationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAttestationsResponse) XXX_Merge ¶
func (m *GetAttestationsResponse) XXX_Merge(src proto.Message)
func (*GetAttestationsResponse) XXX_Size ¶
func (m *GetAttestationsResponse) XXX_Size() int
func (*GetAttestationsResponse) XXX_Unmarshal ¶
func (m *GetAttestationsResponse) XXX_Unmarshal(b []byte) error
type IBCData ¶
type IBCData struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ClientToUpdate string `protobuf:"bytes,3,opt,name=client_to_update,json=clientToUpdate,proto3" json:"client_to_update,omitempty"` Height types.Height `protobuf:"bytes,4,opt,name=height,proto3" json:"height"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` PacketCommitments [][]byte `protobuf:"bytes,6,rep,name=packet_commitments,json=packetCommitments,proto3" json:"packet_commitments,omitempty"` }
func (*IBCData) Descriptor ¶
func (*IBCData) GetChainId ¶
func (*IBCData) GetClientId ¶
func (*IBCData) GetClientToUpdate ¶
func (*IBCData) GetPacketCommitments ¶
func (*IBCData) GetTimestamp ¶
func (*IBCData) MarshalToSizedBuffer ¶
func (*IBCData) ProtoMessage ¶
func (*IBCData) ProtoMessage()
func (*IBCData) XXX_DiscardUnknown ¶
func (m *IBCData) XXX_DiscardUnknown()
func (*IBCData) XXX_Marshal ¶
func (*IBCData) XXX_Unmarshal ¶
type SidecarClient ¶
type SidecarClient interface {
GetAttestations(ctx context.Context, in *GetAttestationsRequest, opts ...grpc.CallOption) (*GetAttestationsResponse, error)
}
SidecarClient is the client API for Sidecar service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSidecarClient ¶
func NewSidecarClient(cc grpc1.ClientConn) SidecarClient
type SidecarServer ¶
type SidecarServer interface {
GetAttestations(context.Context, *GetAttestationsRequest) (*GetAttestationsResponse, error)
}
SidecarServer is the server API for Sidecar service.
type UnimplementedSidecarServer ¶
type UnimplementedSidecarServer struct { }
UnimplementedSidecarServer can be embedded to have forward compatible implementations.
func (*UnimplementedSidecarServer) GetAttestations ¶
func (*UnimplementedSidecarServer) GetAttestations(ctx context.Context, req *GetAttestationsRequest) (*GetAttestationsResponse, error)
Click to show internal directories.
Click to hide internal directories.