Documentation ¶
Overview ¶
Package storage is a generated protocol buffer package.
It is generated from these files:
storage.proto
It has these top-level messages:
UtxoEntry Mainchain
Index ¶
- type Mainchain
- type Mainchain_Hash
- type UtxoEntry
- func (*UtxoEntry) Descriptor() ([]byte, []int)
- func (m *UtxoEntry) GetBlockHeight() uint64
- func (m *UtxoEntry) GetIsCoinBase() bool
- func (m *UtxoEntry) GetSpend() bool
- func (*UtxoEntry) ProtoMessage()
- func (m *UtxoEntry) Reset()
- func (entry *UtxoEntry) SpendOutput()
- func (m *UtxoEntry) String() string
- func (entry *UtxoEntry) UnspendOutput()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mainchain ¶
type Mainchain struct {
Hashs []*Mainchain_Hash `protobuf:"bytes,1,rep,name=hashs" json:"hashs,omitempty"`
}
Mainchain represents a mainchain of the blockchain
func (*Mainchain) Descriptor ¶
func (*Mainchain) GetHashs ¶
func (m *Mainchain) GetHashs() []*Mainchain_Hash
func (*Mainchain) ProtoMessage ¶
func (*Mainchain) ProtoMessage()
type Mainchain_Hash ¶
type Mainchain_Hash struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
}
func (*Mainchain_Hash) Descriptor ¶
func (*Mainchain_Hash) Descriptor() ([]byte, []int)
func (*Mainchain_Hash) GetKey ¶
func (m *Mainchain_Hash) GetKey() []byte
func (*Mainchain_Hash) ProtoMessage ¶
func (*Mainchain_Hash) ProtoMessage()
func (*Mainchain_Hash) Reset ¶
func (m *Mainchain_Hash) Reset()
func (*Mainchain_Hash) String ¶
func (m *Mainchain_Hash) String() string
type UtxoEntry ¶
type UtxoEntry struct { IsCoinBase bool `protobuf:"varint,1,opt,name=isCoinBase" json:"isCoinBase,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight" json:"blockHeight,omitempty"` Spend bool `protobuf:"varint,3,opt,name=spend" json:"spend,omitempty"` }
func NewUtxoEntry ¶
NewUtxoEntry will creaye a new utxo entry
func (*UtxoEntry) Descriptor ¶
func (*UtxoEntry) GetBlockHeight ¶
func (*UtxoEntry) GetIsCoinBase ¶
func (*UtxoEntry) ProtoMessage ¶
func (*UtxoEntry) ProtoMessage()
func (*UtxoEntry) SpendOutput ¶
func (entry *UtxoEntry) SpendOutput()
SpendOutput marks the output at the provided index as spent
func (*UtxoEntry) UnspendOutput ¶
func (entry *UtxoEntry) UnspendOutput()
UnspendOutput marks the output at the provided index as unspent
Click to show internal directories.
Click to hide internal directories.