storage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Mainchain) GetHashs

func (m *Mainchain) GetHashs() []*Mainchain_Hash

func (*Mainchain) ProtoMessage

func (*Mainchain) ProtoMessage()

func (*Mainchain) Reset

func (m *Mainchain) Reset()

func (*Mainchain) String

func (m *Mainchain) String() string

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

func NewUtxoEntry(isCoinBase bool, blockHeight uint64, spend bool) *UtxoEntry

NewUtxoEntry will creaye a new utxo entry

func (*UtxoEntry) Descriptor

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

func (*UtxoEntry) GetBlockHeight

func (m *UtxoEntry) GetBlockHeight() uint64

func (*UtxoEntry) GetIsCoinBase

func (m *UtxoEntry) GetIsCoinBase() bool

func (*UtxoEntry) GetSpend

func (m *UtxoEntry) GetSpend() bool

func (*UtxoEntry) ProtoMessage

func (*UtxoEntry) ProtoMessage()

func (*UtxoEntry) Reset

func (m *UtxoEntry) Reset()

func (*UtxoEntry) SpendOutput

func (entry *UtxoEntry) SpendOutput()

SpendOutput marks the output at the provided index as spent

func (*UtxoEntry) String

func (m *UtxoEntry) String() string

func (*UtxoEntry) UnspendOutput

func (entry *UtxoEntry) UnspendOutput()

UnspendOutput marks the output at the provided index as unspent

Jump to

Keyboard shortcuts

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