blocks

package
v0.0.0-...-e39e4f3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package blocks holds data for blocks.

Initially they will be in one file, but will move out into their own files as things get up and going.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	ID           bson.ObjectId `bson:"_id,omitempty"` //This is DataBase nonsense.
	TimeStamp    time.Time     //Time that the block was created.
	PreviousHash string        //Hash of the previous entry
	//Target                      //This will be either added later, or part of extended types.
	BlockType           string //What type of block is this?
	Payload             bson.M
	Originator          string //It is yet to be determined if this will be a username or a hash.
	OriginatorSignature string //Originator's cryptographic signature on the payload.
	Hash                string //A Hash of everything above, except for the ID.
}

Block is the basic block stucture.

Jump to

Keyboard shortcuts

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