types

package
v0.0.0-...-720432b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 24 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAttestation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttestation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttestation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSidecar        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSidecar          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSidecar = fmt.Errorf("proto: unexpected end of group")
)

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) MarshalTo

func (m *Attestation) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*IBCData) GetChainId

func (m *IBCData) GetChainId() string

func (*IBCData) GetClientId

func (m *IBCData) GetClientId() string

func (*IBCData) GetClientToUpdate

func (m *IBCData) GetClientToUpdate() string

func (*IBCData) GetHeight

func (m *IBCData) GetHeight() types.Height

func (*IBCData) GetPacketCommitments

func (m *IBCData) GetPacketCommitments() [][]byte

func (*IBCData) GetTimestamp

func (m *IBCData) GetTimestamp() time.Time

func (*IBCData) Marshal

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

func (*IBCData) MarshalTo

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

func (*IBCData) MarshalToSizedBuffer

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

func (*IBCData) ProtoMessage

func (*IBCData) ProtoMessage()

func (*IBCData) Reset

func (m *IBCData) Reset()

func (*IBCData) Size

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

func (*IBCData) String

func (m *IBCData) String() string

func (*IBCData) Unmarshal

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

func (*IBCData) XXX_DiscardUnknown

func (m *IBCData) XXX_DiscardUnknown()

func (*IBCData) XXX_Marshal

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

func (*IBCData) XXX_Merge

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

func (*IBCData) XXX_Size

func (m *IBCData) XXX_Size() int

func (*IBCData) XXX_Unmarshal

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

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

Jump to

Keyboard shortcuts

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