v1

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_blob_v1_blob_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BlobProto

type BlobProto struct {
	NamespaceId      []byte `protobuf:"bytes,1,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
	Data             []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	ShareVersion     uint32 `protobuf:"varint,3,opt,name=share_version,json=shareVersion,proto3" json:"share_version,omitempty"`
	NamespaceVersion uint32 `protobuf:"varint,4,opt,name=namespace_version,json=namespaceVersion,proto3" json:"namespace_version,omitempty"`
	// Signer is sdk.AccAddress that paid for this blob. This field is optional
	// and can only be used when share_version is set to 1.
	Signer []byte `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty"`
	// contains filtered or unexported fields
}

BlobProto is the protobuf representation of a blob (binary large object) to be published to the Celestia blockchain. The data of a Blob is published to a namespace and is encoded into shares based on the format specified by share_version.

func (*BlobProto) Descriptor deprecated

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

Deprecated: Use BlobProto.ProtoReflect.Descriptor instead.

func (*BlobProto) GetData

func (x *BlobProto) GetData() []byte

func (*BlobProto) GetNamespaceId

func (x *BlobProto) GetNamespaceId() []byte

func (*BlobProto) GetNamespaceVersion

func (x *BlobProto) GetNamespaceVersion() uint32

func (*BlobProto) GetShareVersion

func (x *BlobProto) GetShareVersion() uint32

func (*BlobProto) GetSigner

func (x *BlobProto) GetSigner() []byte

func (*BlobProto) ProtoMessage

func (*BlobProto) ProtoMessage()

func (*BlobProto) ProtoReflect

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

func (*BlobProto) Reset

func (x *BlobProto) Reset()

func (*BlobProto) String

func (x *BlobProto) String() string

type BlobTx

type BlobTx struct {
	Tx     []byte       `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	Blobs  []*BlobProto `protobuf:"bytes,2,rep,name=blobs,proto3" json:"blobs,omitempty"`
	TypeId string       `protobuf:"bytes,3,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// contains filtered or unexported fields
}

BlobTx wraps an encoded sdk.Tx with a second field to contain blobs of data. The raw bytes of the blobs are not signed over, instead we verify each blob using the relevant MsgPayForBlobs that is signed over in the encoded sdk.Tx.

func (*BlobTx) Descriptor deprecated

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

Deprecated: Use BlobTx.ProtoReflect.Descriptor instead.

func (*BlobTx) GetBlobs

func (x *BlobTx) GetBlobs() []*BlobProto

func (*BlobTx) GetTx

func (x *BlobTx) GetTx() []byte

func (*BlobTx) GetTypeId

func (x *BlobTx) GetTypeId() string

func (*BlobTx) ProtoMessage

func (*BlobTx) ProtoMessage()

func (*BlobTx) ProtoReflect

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

func (*BlobTx) Reset

func (x *BlobTx) Reset()

func (*BlobTx) String

func (x *BlobTx) String() string

type IndexWrapper

type IndexWrapper struct {
	Tx           []byte   `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	ShareIndexes []uint32 `protobuf:"varint,2,rep,packed,name=share_indexes,json=shareIndexes,proto3" json:"share_indexes,omitempty"`
	TypeId       string   `protobuf:"bytes,3,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// contains filtered or unexported fields
}

IndexWrapper adds index metadata to a transaction. This is used to track transactions that pay for blobs, and where the blobs start in the square.

func (*IndexWrapper) Descriptor deprecated

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

Deprecated: Use IndexWrapper.ProtoReflect.Descriptor instead.

func (*IndexWrapper) GetShareIndexes

func (x *IndexWrapper) GetShareIndexes() []uint32

func (*IndexWrapper) GetTx

func (x *IndexWrapper) GetTx() []byte

func (*IndexWrapper) GetTypeId

func (x *IndexWrapper) GetTypeId() string

func (*IndexWrapper) ProtoMessage

func (*IndexWrapper) ProtoMessage()

func (*IndexWrapper) ProtoReflect

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

func (*IndexWrapper) Reset

func (x *IndexWrapper) Reset()

func (*IndexWrapper) String

func (x *IndexWrapper) String() string

Jump to

Keyboard shortcuts

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