Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (b *Block) Deserialize(data []byte) error
- func (x *Block) GetHeader() *BlockHeader
- func (x *Block) GetTransactions() []*transactions.Transaction
- func (b *Block) ID() types.ID
- func (b *Block) MarshalJSON() ([]byte, error)
- func (b *Block) Nullifiers() []types.Nullifier
- func (b *Block) Outputs() []*transactions.Output
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (b *Block) Serialize() ([]byte, error)
- func (b *Block) SerializedSize() (int, error)
- func (x *Block) String() string
- func (b *Block) Txids() []types.ID
- func (b *Block) UnmarshalJSON(data []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)deprecated
- func (h *BlockHeader) Deserialize(data []byte) error
- func (x *BlockHeader) GetHeight() uint32
- func (x *BlockHeader) GetParent() []byte
- func (x *BlockHeader) GetProducer_ID() []byte
- func (x *BlockHeader) GetSignature() []byte
- func (x *BlockHeader) GetTimestamp() int64
- func (x *BlockHeader) GetTxRoot() []byte
- func (x *BlockHeader) GetVersion() uint32
- func (h *BlockHeader) ID() types.ID
- func (h *BlockHeader) MarshalJSON() ([]byte, error)
- func (*BlockHeader) ProtoMessage()
- func (x *BlockHeader) ProtoReflect() protoreflect.Message
- func (x *BlockHeader) Reset()
- func (h *BlockHeader) Serialize() ([]byte, error)
- func (h *BlockHeader) SerializedSize() (int, error)
- func (h *BlockHeader) SigHash() ([]byte, error)
- func (x *BlockHeader) String() string
- func (h *BlockHeader) UnmarshalJSON(data []byte) error
- type BlockTxs
- type CompressedBlock
- func (*CompressedBlock) Descriptor() ([]byte, []int)deprecated
- func (b *CompressedBlock) Deserialize(data []byte) error
- func (x *CompressedBlock) GetHeight() uint32
- func (x *CompressedBlock) GetNullifiers() [][]byte
- func (x *CompressedBlock) GetOutputs() []*transactions.Output
- func (b *CompressedBlock) MarshalJSON() ([]byte, error)
- func (*CompressedBlock) ProtoMessage()
- func (x *CompressedBlock) ProtoReflect() protoreflect.Message
- func (x *CompressedBlock) Reset()
- func (b *CompressedBlock) SerializedSize() (int, error)
- func (x *CompressedBlock) String() string
- func (b *CompressedBlock) UnmarshalJSON(data []byte) error
- type XThinnerBlock
- func (*XThinnerBlock) Descriptor() ([]byte, []int)deprecated
- func (b *XThinnerBlock) Deserialize(data []byte) error
- func (x *XThinnerBlock) GetHeader() *BlockHeader
- func (x *XThinnerBlock) GetPops() []byte
- func (x *XThinnerBlock) GetPrefilledTxs() []*XThinnerBlock_PrefilledTransaction
- func (x *XThinnerBlock) GetPushBytes() []byte
- func (x *XThinnerBlock) GetPushes() []byte
- func (x *XThinnerBlock) GetTxCount() uint32
- func (b *XThinnerBlock) ID() types.ID
- func (b *XThinnerBlock) MarshalJSON() ([]byte, error)
- func (*XThinnerBlock) ProtoMessage()
- func (x *XThinnerBlock) ProtoReflect() protoreflect.Message
- func (x *XThinnerBlock) Reset()
- func (b *XThinnerBlock) Serialize() ([]byte, error)
- func (b *XThinnerBlock) SerializedSize() (int, error)
- func (x *XThinnerBlock) String() string
- func (b *XThinnerBlock) UnmarshalJSON(data []byte) error
- type XThinnerBlock_PrefilledTransaction
- func (*XThinnerBlock_PrefilledTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *XThinnerBlock_PrefilledTransaction) GetIndex() uint32
- func (x *XThinnerBlock_PrefilledTransaction) GetTransaction() *transactions.Transaction
- func (*XThinnerBlock_PrefilledTransaction) ProtoMessage()
- func (x *XThinnerBlock_PrefilledTransaction) ProtoReflect() protoreflect.Message
- func (x *XThinnerBlock_PrefilledTransaction) Reset()
- func (x *XThinnerBlock_PrefilledTransaction) String() string
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) Deserialize ¶
func (*Block) GetHeader ¶
func (x *Block) GetHeader() *BlockHeader
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*transactions.Transaction
func (*Block) MarshalJSON ¶
func (*Block) Nullifiers ¶
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) SerializedSize ¶
func (*Block) UnmarshalJSON ¶
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) GetTransactions ¶
func (x *BlockTxs) GetTransactions() []*transactions.Transaction
func (*BlockTxs) ProtoMessage ¶
func (*BlockTxs) ProtoMessage()
func (*BlockTxs) ProtoReflect ¶
func (x *BlockTxs) ProtoReflect() protoreflect.Message
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 (x *XThinnerBlock_PrefilledTransaction) GetIndex() uint32
func (*XThinnerBlock_PrefilledTransaction) GetTransaction ¶
func (x *XThinnerBlock_PrefilledTransaction) GetTransaction() *transactions.Transaction
func (*XThinnerBlock_PrefilledTransaction) ProtoMessage ¶
func (*XThinnerBlock_PrefilledTransaction) ProtoMessage()
func (*XThinnerBlock_PrefilledTransaction) ProtoReflect ¶
func (x *XThinnerBlock_PrefilledTransaction) ProtoReflect() protoreflect.Message
func (*XThinnerBlock_PrefilledTransaction) Reset ¶
func (x *XThinnerBlock_PrefilledTransaction) Reset()
func (*XThinnerBlock_PrefilledTransaction) String ¶
func (x *XThinnerBlock_PrefilledTransaction) String() string
Click to show internal directories.
Click to hide internal directories.