availabilitypb

package
v0.4.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_availabilitypb_availabilitypb_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Cert

type Cert struct {

	// Types that are assignable to Type:
	//	*Cert_Mscs
	Type isCert_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Cert) Descriptor deprecated

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

Deprecated: Use Cert.ProtoReflect.Descriptor instead.

func (*Cert) GetMscs added in v0.3.0

func (x *Cert) GetMscs() *mscpb.Certs

func (*Cert) GetType

func (m *Cert) GetType() isCert_Type

func (*Cert) ProtoMessage

func (*Cert) ProtoMessage()

func (*Cert) ProtoReflect

func (x *Cert) ProtoReflect() protoreflect.Message

func (*Cert) ReflectTypeOptions added in v0.3.0

func (*Cert) ReflectTypeOptions() []reflect.Type

func (*Cert) Reset

func (x *Cert) Reset()

func (*Cert) String

func (x *Cert) String() string

type CertVerified

type CertVerified struct {
	Valid  bool              `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	Err    string            `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	Origin *VerifyCertOrigin `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

CertVerified is a response to a VerifyCert event.

func (*CertVerified) Descriptor deprecated

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

Deprecated: Use CertVerified.ProtoReflect.Descriptor instead.

func (*CertVerified) GetErr

func (x *CertVerified) GetErr() string

func (*CertVerified) GetOrigin

func (x *CertVerified) GetOrigin() *VerifyCertOrigin

func (*CertVerified) GetValid

func (x *CertVerified) GetValid() bool

func (*CertVerified) ProtoMessage

func (*CertVerified) ProtoMessage()

func (*CertVerified) ProtoReflect

func (x *CertVerified) ProtoReflect() protoreflect.Message

func (*CertVerified) Reset

func (x *CertVerified) Reset()

func (*CertVerified) String

func (x *CertVerified) String() string

type Cert_Mscs added in v0.3.0

type Cert_Mscs struct {
	Mscs *mscpb.Certs `protobuf:"bytes,1,opt,name=mscs,proto3,oneof"`
}

func (*Cert_Mscs) Unwrap added in v0.3.0

func (w *Cert_Mscs) Unwrap() *mscpb.Certs

type Cert_Type added in v0.3.0

type Cert_Type = isCert_Type

type Cert_TypeWrapper added in v0.3.0

type Cert_TypeWrapper[T any] interface {
	Cert_Type
	Unwrap() *T
}

type ComputeCert added in v0.3.0

type ComputeCert struct {
	// contains filtered or unexported fields
}

func (*ComputeCert) Descriptor deprecated added in v0.3.0

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

Deprecated: Use ComputeCert.ProtoReflect.Descriptor instead.

func (*ComputeCert) ProtoMessage added in v0.3.0

func (*ComputeCert) ProtoMessage()

func (*ComputeCert) ProtoReflect added in v0.3.0

func (x *ComputeCert) ProtoReflect() protoreflect.Message

func (*ComputeCert) Reset added in v0.3.0

func (x *ComputeCert) Reset()

func (*ComputeCert) String added in v0.3.0

func (x *ComputeCert) String() string

type Event

type Event struct {

	// Types that are assignable to Type:
	//	*Event_RequestCert
	//	*Event_NewCert
	//	*Event_VerifyCert
	//	*Event_CertVerified
	//	*Event_RequestTransactions
	//	*Event_ProvideTransactions
	//	*Event_ComputeCert
	Type isEvent_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetCertVerified

func (x *Event) GetCertVerified() *CertVerified

func (*Event) GetComputeCert added in v0.3.0

func (x *Event) GetComputeCert() *ComputeCert

func (*Event) GetNewCert

func (x *Event) GetNewCert() *NewCert

func (*Event) GetProvideTransactions

func (x *Event) GetProvideTransactions() *ProvideTransactions

func (*Event) GetRequestCert

func (x *Event) GetRequestCert() *RequestCert

func (*Event) GetRequestTransactions

func (x *Event) GetRequestTransactions() *RequestTransactions

func (*Event) GetType

func (m *Event) GetType() isEvent_Type

func (*Event) GetVerifyCert

func (x *Event) GetVerifyCert() *VerifyCert

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) ReflectTypeOptions added in v0.2.0

func (*Event) ReflectTypeOptions() []reflect.Type

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Event_CertVerified

type Event_CertVerified struct {
	CertVerified *CertVerified `protobuf:"bytes,4,opt,name=cert_verified,json=certVerified,proto3,oneof"`
}

func (*Event_CertVerified) Unwrap

func (w *Event_CertVerified) Unwrap() *CertVerified

type Event_ComputeCert added in v0.3.0

type Event_ComputeCert struct {
	ComputeCert *ComputeCert `protobuf:"bytes,7,opt,name=compute_cert,json=computeCert,proto3,oneof"`
}

func (*Event_ComputeCert) Unwrap added in v0.3.0

func (w *Event_ComputeCert) Unwrap() *ComputeCert

type Event_NewCert

type Event_NewCert struct {
	NewCert *NewCert `protobuf:"bytes,2,opt,name=new_cert,json=newCert,proto3,oneof"`
}

func (*Event_NewCert) Unwrap

func (w *Event_NewCert) Unwrap() *NewCert

type Event_ProvideTransactions

type Event_ProvideTransactions struct {
	ProvideTransactions *ProvideTransactions `protobuf:"bytes,6,opt,name=provide_transactions,json=provideTransactions,proto3,oneof"`
}

func (*Event_ProvideTransactions) Unwrap

type Event_RequestCert

type Event_RequestCert struct {
	RequestCert *RequestCert `protobuf:"bytes,1,opt,name=request_cert,json=requestCert,proto3,oneof"`
}

func (*Event_RequestCert) Unwrap

func (w *Event_RequestCert) Unwrap() *RequestCert

type Event_RequestTransactions

type Event_RequestTransactions struct {
	RequestTransactions *RequestTransactions `protobuf:"bytes,5,opt,name=request_transactions,json=requestTransactions,proto3,oneof"`
}

func (*Event_RequestTransactions) Unwrap

type Event_Type

type Event_Type = isEvent_Type

type Event_TypeWrapper

type Event_TypeWrapper[T any] interface {
	Event_Type
	Unwrap() *T
}

type Event_VerifyCert

type Event_VerifyCert struct {
	VerifyCert *VerifyCert `protobuf:"bytes,3,opt,name=verify_cert,json=verifyCert,proto3,oneof"`
}

func (*Event_VerifyCert) Unwrap

func (w *Event_VerifyCert) Unwrap() *VerifyCert

type NewCert

type NewCert struct {
	Cert   *Cert              `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
	Origin *RequestCertOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

NewCert is a response to a RequestCert event.

func (*NewCert) Descriptor deprecated

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

Deprecated: Use NewCert.ProtoReflect.Descriptor instead.

func (*NewCert) GetCert

func (x *NewCert) GetCert() *Cert

func (*NewCert) GetOrigin

func (x *NewCert) GetOrigin() *RequestCertOrigin

func (*NewCert) ProtoMessage

func (*NewCert) ProtoMessage()

func (*NewCert) ProtoReflect

func (x *NewCert) ProtoReflect() protoreflect.Message

func (*NewCert) Reset

func (x *NewCert) Reset()

func (*NewCert) String

func (x *NewCert) String() string

type ProvideTransactions

type ProvideTransactions struct {
	Txs    []*trantorpb.Transaction   `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	Origin *RequestTransactionsOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

ProvideTransactions is a response to a RequestTransactions event.

func (*ProvideTransactions) Descriptor deprecated

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

Deprecated: Use ProvideTransactions.ProtoReflect.Descriptor instead.

func (*ProvideTransactions) GetOrigin

func (*ProvideTransactions) GetTxs

func (x *ProvideTransactions) GetTxs() []*trantorpb.Transaction

func (*ProvideTransactions) ProtoMessage

func (*ProvideTransactions) ProtoMessage()

func (*ProvideTransactions) ProtoReflect

func (x *ProvideTransactions) ProtoReflect() protoreflect.Message

func (*ProvideTransactions) Reset

func (x *ProvideTransactions) Reset()

func (*ProvideTransactions) String

func (x *ProvideTransactions) String() string

type RequestCert

type RequestCert struct {
	Origin *RequestCertOrigin `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

RequestCert is used by the consensus component to request an availability certificate for a batch of transactions from the availability component.

func (*RequestCert) Descriptor deprecated

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

Deprecated: Use RequestCert.ProtoReflect.Descriptor instead.

func (*RequestCert) GetOrigin

func (x *RequestCert) GetOrigin() *RequestCertOrigin

func (*RequestCert) ProtoMessage

func (*RequestCert) ProtoMessage()

func (*RequestCert) ProtoReflect

func (x *RequestCert) ProtoReflect() protoreflect.Message

func (*RequestCert) Reset

func (x *RequestCert) Reset()

func (*RequestCert) String

func (x *RequestCert) String() string

type RequestCertOrigin

type RequestCertOrigin struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Types that are assignable to Type:
	//	*RequestCertOrigin_ContextStore
	//	*RequestCertOrigin_Dsl
	Type isRequestCertOrigin_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*RequestCertOrigin) Descriptor deprecated

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

Deprecated: Use RequestCertOrigin.ProtoReflect.Descriptor instead.

func (*RequestCertOrigin) GetContextStore

func (x *RequestCertOrigin) GetContextStore() *contextstorepb.Origin

func (*RequestCertOrigin) GetDsl

func (x *RequestCertOrigin) GetDsl() *dslpb.Origin

func (*RequestCertOrigin) GetModule

func (x *RequestCertOrigin) GetModule() string

func (*RequestCertOrigin) GetType

func (m *RequestCertOrigin) GetType() isRequestCertOrigin_Type

func (*RequestCertOrigin) ProtoMessage

func (*RequestCertOrigin) ProtoMessage()

func (*RequestCertOrigin) ProtoReflect

func (x *RequestCertOrigin) ProtoReflect() protoreflect.Message

func (*RequestCertOrigin) ReflectTypeOptions added in v0.2.0

func (*RequestCertOrigin) ReflectTypeOptions() []reflect.Type

func (*RequestCertOrigin) Reset

func (x *RequestCertOrigin) Reset()

func (*RequestCertOrigin) String

func (x *RequestCertOrigin) String() string

type RequestCertOrigin_ContextStore

type RequestCertOrigin_ContextStore struct {
	ContextStore *contextstorepb.Origin `protobuf:"bytes,2,opt,name=context_store,json=contextStore,proto3,oneof"`
}

func (*RequestCertOrigin_ContextStore) Unwrap added in v0.2.0

type RequestCertOrigin_Dsl

type RequestCertOrigin_Dsl struct {
	Dsl *dslpb.Origin `protobuf:"bytes,3,opt,name=dsl,proto3,oneof"`
}

func (*RequestCertOrigin_Dsl) Unwrap added in v0.2.0

func (w *RequestCertOrigin_Dsl) Unwrap() *dslpb.Origin

type RequestCertOrigin_Type added in v0.2.0

type RequestCertOrigin_Type = isRequestCertOrigin_Type

type RequestCertOrigin_TypeWrapper added in v0.2.0

type RequestCertOrigin_TypeWrapper[T any] interface {
	RequestCertOrigin_Type
	Unwrap() *T
}

type RequestTransactions

type RequestTransactions struct {
	Cert   *Cert                      `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
	Origin *RequestTransactionsOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

RequestTransactions allows reconstructing a batch of transactions by a corresponding availability certificate. It is possible that some of the transactions are not stored locally on the node. In this case, the availability layer will pull these transactions from other nodes.

func (*RequestTransactions) Descriptor deprecated

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

Deprecated: Use RequestTransactions.ProtoReflect.Descriptor instead.

func (*RequestTransactions) GetCert

func (x *RequestTransactions) GetCert() *Cert

func (*RequestTransactions) GetOrigin

func (*RequestTransactions) ProtoMessage

func (*RequestTransactions) ProtoMessage()

func (*RequestTransactions) ProtoReflect

func (x *RequestTransactions) ProtoReflect() protoreflect.Message

func (*RequestTransactions) Reset

func (x *RequestTransactions) Reset()

func (*RequestTransactions) String

func (x *RequestTransactions) String() string

type RequestTransactionsOrigin

type RequestTransactionsOrigin struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Types that are assignable to Type:
	//	*RequestTransactionsOrigin_ContextStore
	//	*RequestTransactionsOrigin_Dsl
	Type isRequestTransactionsOrigin_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*RequestTransactionsOrigin) Descriptor deprecated

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

Deprecated: Use RequestTransactionsOrigin.ProtoReflect.Descriptor instead.

func (*RequestTransactionsOrigin) GetContextStore

func (x *RequestTransactionsOrigin) GetContextStore() *contextstorepb.Origin

func (*RequestTransactionsOrigin) GetDsl

func (x *RequestTransactionsOrigin) GetDsl() *dslpb.Origin

func (*RequestTransactionsOrigin) GetModule

func (x *RequestTransactionsOrigin) GetModule() string

func (*RequestTransactionsOrigin) GetType

func (m *RequestTransactionsOrigin) GetType() isRequestTransactionsOrigin_Type

func (*RequestTransactionsOrigin) ProtoMessage

func (*RequestTransactionsOrigin) ProtoMessage()

func (*RequestTransactionsOrigin) ProtoReflect

func (*RequestTransactionsOrigin) ReflectTypeOptions added in v0.3.0

func (*RequestTransactionsOrigin) ReflectTypeOptions() []reflect.Type

func (*RequestTransactionsOrigin) Reset

func (x *RequestTransactionsOrigin) Reset()

func (*RequestTransactionsOrigin) String

func (x *RequestTransactionsOrigin) String() string

type RequestTransactionsOrigin_ContextStore

type RequestTransactionsOrigin_ContextStore struct {
	ContextStore *contextstorepb.Origin `protobuf:"bytes,2,opt,name=context_store,json=contextStore,proto3,oneof"`
}

func (*RequestTransactionsOrigin_ContextStore) Unwrap added in v0.3.0

type RequestTransactionsOrigin_Dsl

type RequestTransactionsOrigin_Dsl struct {
	Dsl *dslpb.Origin `protobuf:"bytes,3,opt,name=dsl,proto3,oneof"`
}

func (*RequestTransactionsOrigin_Dsl) Unwrap added in v0.3.0

type RequestTransactionsOrigin_Type added in v0.3.0

type RequestTransactionsOrigin_Type = isRequestTransactionsOrigin_Type

type RequestTransactionsOrigin_TypeWrapper added in v0.3.0

type RequestTransactionsOrigin_TypeWrapper[T any] interface {
	RequestTransactionsOrigin_Type
	Unwrap() *T
}

type VerifyCert

type VerifyCert struct {
	Cert   *Cert             `protobuf:"bytes,1,opt,name=cert,proto3" json:"cert,omitempty"`
	Origin *VerifyCertOrigin `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

VerifyCert can be used to verify validity of an availability certificate.

func (*VerifyCert) Descriptor deprecated

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

Deprecated: Use VerifyCert.ProtoReflect.Descriptor instead.

func (*VerifyCert) GetCert

func (x *VerifyCert) GetCert() *Cert

func (*VerifyCert) GetOrigin

func (x *VerifyCert) GetOrigin() *VerifyCertOrigin

func (*VerifyCert) ProtoMessage

func (*VerifyCert) ProtoMessage()

func (*VerifyCert) ProtoReflect

func (x *VerifyCert) ProtoReflect() protoreflect.Message

func (*VerifyCert) Reset

func (x *VerifyCert) Reset()

func (*VerifyCert) String

func (x *VerifyCert) String() string

type VerifyCertOrigin

type VerifyCertOrigin struct {
	Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	// Types that are assignable to Type:
	//	*VerifyCertOrigin_ContextStore
	//	*VerifyCertOrigin_Dsl
	Type isVerifyCertOrigin_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*VerifyCertOrigin) Descriptor deprecated

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

Deprecated: Use VerifyCertOrigin.ProtoReflect.Descriptor instead.

func (*VerifyCertOrigin) GetContextStore

func (x *VerifyCertOrigin) GetContextStore() *contextstorepb.Origin

func (*VerifyCertOrigin) GetDsl

func (x *VerifyCertOrigin) GetDsl() *dslpb.Origin

func (*VerifyCertOrigin) GetModule

func (x *VerifyCertOrigin) GetModule() string

func (*VerifyCertOrigin) GetType

func (m *VerifyCertOrigin) GetType() isVerifyCertOrigin_Type

func (*VerifyCertOrigin) ProtoMessage

func (*VerifyCertOrigin) ProtoMessage()

func (*VerifyCertOrigin) ProtoReflect

func (x *VerifyCertOrigin) ProtoReflect() protoreflect.Message

func (*VerifyCertOrigin) ReflectTypeOptions added in v0.2.0

func (*VerifyCertOrigin) ReflectTypeOptions() []reflect.Type

func (*VerifyCertOrigin) Reset

func (x *VerifyCertOrigin) Reset()

func (*VerifyCertOrigin) String

func (x *VerifyCertOrigin) String() string

type VerifyCertOrigin_ContextStore

type VerifyCertOrigin_ContextStore struct {
	ContextStore *contextstorepb.Origin `protobuf:"bytes,2,opt,name=context_store,json=contextStore,proto3,oneof"`
}

func (*VerifyCertOrigin_ContextStore) Unwrap added in v0.2.0

type VerifyCertOrigin_Dsl

type VerifyCertOrigin_Dsl struct {
	Dsl *dslpb.Origin `protobuf:"bytes,3,opt,name=dsl,proto3,oneof"`
}

func (*VerifyCertOrigin_Dsl) Unwrap added in v0.2.0

func (w *VerifyCertOrigin_Dsl) Unwrap() *dslpb.Origin

type VerifyCertOrigin_Type added in v0.2.0

type VerifyCertOrigin_Type = isVerifyCertOrigin_Type

type VerifyCertOrigin_TypeWrapper added in v0.2.0

type VerifyCertOrigin_TypeWrapper[T any] interface {
	VerifyCertOrigin_Type
	Unwrap() *T
}

Directories

Path Synopsis
dsl
dsl

Jump to

Keyboard shortcuts

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