core

package
v0.0.0-...-78e7445 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 Block

type Block struct {
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(data []byte, prevHash Hash) *Block

func NewGenesisBlock

func NewGenesisBlock() *Block

func (*Block) Hash

func (b *Block) Hash() Hash

func (*Block) String

func (b *Block) String() string

type Blockchain

type Blockchain struct {
	// contains filtered or unexported fields
}

func NewBlockchain

func NewBlockchain() *Blockchain

func (*Blockchain) Add

func (bc *Blockchain) Add(data []byte)

func (*Blockchain) String

func (bc *Blockchain) String() string

type Hash

type Hash [32]byte

Jump to

Keyboard shortcuts

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