blocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 10 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_blocks_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Header       *BlockHeader                `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Transactions []*transactions.Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) Deserialize

func (b *Block) Deserialize(data []byte) error

func (*Block) GetHeader

func (x *Block) GetHeader() *BlockHeader

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*transactions.Transaction

func (*Block) ID

func (b *Block) ID() types.ID

func (*Block) MarshalJSON

func (b *Block) MarshalJSON() ([]byte, error)

func (*Block) Nullifiers

func (b *Block) Nullifiers() []types.Nullifier

func (*Block) Outputs

func (b *Block) Outputs() []*transactions.Output

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) Serialize

func (b *Block) Serialize() ([]byte, error)

func (*Block) SerializedSize

func (b *Block) SerializedSize() (int, error)

func (*Block) String

func (x *Block) String() string

func (*Block) Txids

func (b *Block) Txids() []types.ID

func (*Block) UnmarshalJSON

func (b *Block) UnmarshalJSON(data []byte) error

type BlockHeader

type BlockHeader struct {
	Version     uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Height      uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Parent      []byte `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	Timestamp   int64  `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	TxRoot      []byte `protobuf:"bytes,5,opt,name=tx_root,json=txRoot,proto3" json:"tx_root,omitempty"`
	Producer_ID []byte `protobuf:"bytes,6,opt,name=producer_ID,json=producerID,proto3" json:"producer_ID,omitempty"`
	Signature   []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeader) Descriptor deprecated

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

Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.

func (*BlockHeader) Deserialize

func (h *BlockHeader) Deserialize(data []byte) error

func (*BlockHeader) GetHeight

func (x *BlockHeader) GetHeight() uint32

func (*BlockHeader) GetParent

func (x *BlockHeader) GetParent() []byte

func (*BlockHeader) GetProducer_ID

func (x *BlockHeader) GetProducer_ID() []byte

func (*BlockHeader) GetSignature

func (x *BlockHeader) GetSignature() []byte

func (*BlockHeader) GetTimestamp

func (x *BlockHeader) GetTimestamp() int64

func (*BlockHeader) GetTxRoot

func (x *BlockHeader) GetTxRoot() []byte

func (*BlockHeader) GetVersion

func (x *BlockHeader) GetVersion() uint32

func (*BlockHeader) ID

func (h *BlockHeader) ID() types.ID

func (*BlockHeader) MarshalJSON

func (h *BlockHeader) MarshalJSON() ([]byte, error)

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) ProtoReflect

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

func (*BlockHeader) Reset

func (x *BlockHeader) Reset()

func (*BlockHeader) Serialize

func (h *BlockHeader) Serialize() ([]byte, error)

func (*BlockHeader) SerializedSize

func (h *BlockHeader) SerializedSize() (int, error)

func (*BlockHeader) SigHash

func (h *BlockHeader) SigHash() ([]byte, error)

func (*BlockHeader) String

func (x *BlockHeader) String() string

func (*BlockHeader) UnmarshalJSON

func (h *BlockHeader) UnmarshalJSON(data []byte) error

type BlockTxs

type BlockTxs struct {
	Transactions []*transactions.Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockTxs) Descriptor deprecated

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

Deprecated: Use BlockTxs.ProtoReflect.Descriptor instead.

func (*BlockTxs) GetTransactions

func (x *BlockTxs) GetTransactions() []*transactions.Transaction

func (*BlockTxs) ProtoMessage

func (*BlockTxs) ProtoMessage()

func (*BlockTxs) ProtoReflect

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

func (*BlockTxs) Reset

func (x *BlockTxs) Reset()

func (*BlockTxs) String

func (x *BlockTxs) String() string

type CompressedBlock

type CompressedBlock struct {
	Height     uint32                 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Nullifiers [][]byte               `protobuf:"bytes,2,rep,name=nullifiers,proto3" json:"nullifiers,omitempty"`
	Outputs    []*transactions.Output `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*CompressedBlock) Descriptor deprecated

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

Deprecated: Use CompressedBlock.ProtoReflect.Descriptor instead.

func (*CompressedBlock) Deserialize

func (b *CompressedBlock) Deserialize(data []byte) error

func (*CompressedBlock) GetHeight

func (x *CompressedBlock) GetHeight() uint32

func (*CompressedBlock) GetNullifiers

func (x *CompressedBlock) GetNullifiers() [][]byte

func (*CompressedBlock) GetOutputs

func (x *CompressedBlock) GetOutputs() []*transactions.Output

func (*CompressedBlock) MarshalJSON

func (b *CompressedBlock) MarshalJSON() ([]byte, error)

func (*CompressedBlock) ProtoMessage

func (*CompressedBlock) ProtoMessage()

func (*CompressedBlock) ProtoReflect

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

func (*CompressedBlock) Reset

func (x *CompressedBlock) Reset()

func (*CompressedBlock) SerializedSize

func (b *CompressedBlock) SerializedSize() (int, error)

func (*CompressedBlock) String

func (x *CompressedBlock) String() string

func (*CompressedBlock) UnmarshalJSON

func (b *CompressedBlock) UnmarshalJSON(data []byte) error

type XThinnerBlock

type XThinnerBlock struct {
	Header       *BlockHeader                          `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	TxCount      uint32                                `protobuf:"varint,2,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	Pops         []byte                                `protobuf:"bytes,3,opt,name=pops,proto3" json:"pops,omitempty"`
	Pushes       []byte                                `protobuf:"bytes,4,opt,name=pushes,proto3" json:"pushes,omitempty"`
	PushBytes    []byte                                `protobuf:"bytes,5,opt,name=push_bytes,json=pushBytes,proto3" json:"push_bytes,omitempty"`
	PrefilledTxs []*XThinnerBlock_PrefilledTransaction `protobuf:"bytes,6,rep,name=prefilled_txs,json=prefilledTxs,proto3" json:"prefilled_txs,omitempty"`
	// contains filtered or unexported fields
}

func (*XThinnerBlock) Descriptor deprecated

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

Deprecated: Use XThinnerBlock.ProtoReflect.Descriptor instead.

func (*XThinnerBlock) Deserialize

func (b *XThinnerBlock) Deserialize(data []byte) error

func (*XThinnerBlock) GetHeader

func (x *XThinnerBlock) GetHeader() *BlockHeader

func (*XThinnerBlock) GetPops

func (x *XThinnerBlock) GetPops() []byte

func (*XThinnerBlock) GetPrefilledTxs

func (x *XThinnerBlock) GetPrefilledTxs() []*XThinnerBlock_PrefilledTransaction

func (*XThinnerBlock) GetPushBytes

func (x *XThinnerBlock) GetPushBytes() []byte

func (*XThinnerBlock) GetPushes

func (x *XThinnerBlock) GetPushes() []byte

func (*XThinnerBlock) GetTxCount

func (x *XThinnerBlock) GetTxCount() uint32

func (*XThinnerBlock) ID

func (b *XThinnerBlock) ID() types.ID

func (*XThinnerBlock) MarshalJSON

func (b *XThinnerBlock) MarshalJSON() ([]byte, error)

func (*XThinnerBlock) ProtoMessage

func (*XThinnerBlock) ProtoMessage()

func (*XThinnerBlock) ProtoReflect

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

func (*XThinnerBlock) Reset

func (x *XThinnerBlock) Reset()

func (*XThinnerBlock) Serialize

func (b *XThinnerBlock) Serialize() ([]byte, error)

func (*XThinnerBlock) SerializedSize

func (b *XThinnerBlock) SerializedSize() (int, error)

func (*XThinnerBlock) String

func (x *XThinnerBlock) String() string

func (*XThinnerBlock) UnmarshalJSON

func (b *XThinnerBlock) UnmarshalJSON(data []byte) error

type XThinnerBlock_PrefilledTransaction

type XThinnerBlock_PrefilledTransaction struct {
	Transaction *transactions.Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	Index       uint32                    `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*XThinnerBlock_PrefilledTransaction) Descriptor deprecated

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

Deprecated: Use XThinnerBlock_PrefilledTransaction.ProtoReflect.Descriptor instead.

func (*XThinnerBlock_PrefilledTransaction) GetIndex

func (*XThinnerBlock_PrefilledTransaction) GetTransaction

func (*XThinnerBlock_PrefilledTransaction) ProtoMessage

func (*XThinnerBlock_PrefilledTransaction) ProtoMessage()

func (*XThinnerBlock_PrefilledTransaction) ProtoReflect

func (*XThinnerBlock_PrefilledTransaction) Reset

func (*XThinnerBlock_PrefilledTransaction) String

Jump to

Keyboard shortcuts

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