ledger

package
v0.0.0-...-eb21b60 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

type Ledger struct {
	Chain     uint64
	Blocks    []block.Block
	Addresses *btree.BTree
}

func New

func New(chain uint64) *Ledger

func (*Ledger) Append

func (l *Ledger) Append(b block.Block) error

func (*Ledger) Init

func (l *Ledger) Init(complexity uint64, creator *account.Private) error

func (*Ledger) Last

func (l *Ledger) Last() block.Block

func (*Ledger) ReadFrom

func (l *Ledger) ReadFrom(r io.Reader) error

func (*Ledger) Size

func (l *Ledger) Size() uint64

func (*Ledger) WriteTo

func (l *Ledger) WriteTo(w io.Writer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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