core

package
v0.0.0-...-b6f7943 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package core contains most of the blockchain logic

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
}

The in-memory representation of a block - 4 byte block size, - transaction counter, will be calculated on the fly

type BlockChain

type BlockChain struct {
	// contains filtered or unexported fields
}
type Header struct {
	Version    int         `json:"version"`
	Nonce      int         `json:"nonce"`
	Time       int64       `json:"timestamp"`
	Root       common.Hash `json:"root"`
	ParentHash common.Hash `json:"parentHash"`
}

Header holds a block's header - we're structuring the JSON because we'll be handing this over the web

Jump to

Keyboard shortcuts

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