Documentation ¶
Index ¶
- Variables
- type Block
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetHeight() uint32
- func (x *Header) GetMerkleRoot() []byte
- func (x *Header) GetPreviousHash() []byte
- func (x *Header) GetTimestamp() int64
- func (x *Header) GetVersion() uint32
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetInputs() []*TxInput
- func (x *Transaction) GetOutputs() []*TxOutput
- func (x *Transaction) GetVersion() uint32
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TxInput
- func (*TxInput) Descriptor() ([]byte, []int)deprecated
- func (x *TxInput) GetPreviousOutHash() []byte
- func (x *TxInput) GetPreviousOutIndex() uint32
- func (x *TxInput) GetPublicKey() []byte
- func (x *TxInput) GetSignature() []byte
- func (*TxInput) ProtoMessage()
- func (x *TxInput) ProtoReflect() protoreflect.Message
- func (x *TxInput) Reset()
- func (x *TxInput) String() string
- type TxOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transaction
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type Header ¶
type Header 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"` PreviousHash []byte `protobuf:"bytes,3,opt,name=previousHash,proto3" json:"previousHash,omitempty"` MerkleRoot []byte `protobuf:"bytes,4,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetMerkleRoot ¶
func (*Header) GetPreviousHash ¶
func (*Header) GetTimestamp ¶
func (*Header) GetVersion ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Inputs []*TxInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*TxOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetInputs ¶
func (x *Transaction) GetInputs() []*TxInput
func (*Transaction) GetOutputs ¶
func (x *Transaction) GetOutputs() []*TxOutput
func (*Transaction) GetVersion ¶
func (x *Transaction) GetVersion() uint32
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TxInput ¶
type TxInput struct { PreviousOutHash []byte `protobuf:"bytes,1,opt,name=previousOutHash,proto3" json:"previousOutHash,omitempty"` // The hash of the transaction that contains the output being spent. PreviousOutIndex uint32 `protobuf:"varint,2,opt,name=previousOutIndex,proto3" json:"previousOutIndex,omitempty"` // The index of the output of the previous transaction that is being spent. PublicKey []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*TxInput) Descriptor
deprecated
func (*TxInput) GetPreviousOutHash ¶
func (*TxInput) GetPreviousOutIndex ¶
func (*TxInput) GetPublicKey ¶
func (*TxInput) GetSignature ¶
func (*TxInput) ProtoMessage ¶
func (*TxInput) ProtoMessage()
func (*TxInput) ProtoReflect ¶
func (x *TxInput) ProtoReflect() protoreflect.Message
type TxOutput ¶
type TxOutput struct { Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*TxOutput) Descriptor
deprecated
func (*TxOutput) GetAddress ¶
func (*TxOutput) ProtoMessage ¶
func (*TxOutput) ProtoMessage()
func (*TxOutput) ProtoReflect ¶
func (x *TxOutput) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.