proof

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2016 License: ISC Imports: 27 Imported by: 1

Documentation

Overview

prepare blocks for prooferd

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finalise

func Finalise() error

finialise - stop all background tasks

func Initialise

func Initialise(configuration *Configuration) error

initialise proofer backgrouds processes

Types

type Configuration

type Configuration struct {
	//MaximumConnections int          `libucl:"maximum_connections"`
	Publish    []string `libucl:"publish"`
	Submit     []string `libucl:"submit"`
	PrivateKey string   `libucl:"private_key"`
	PublicKey  string   `libucl:"public_key"`
	SigningKey string   `libucl:"signing_key"`
	Currency   string   `libucl:"currency"`
	Address    string   `libucl:"address"`
}

server identification in Z85 (ZeroMQ Base-85 Encoding) see: http://rfc.zeromq.org/spec:32 a block of configuration data this is read from a libucl configuration file

type PublishedItem

type PublishedItem struct {
	Job      string
	Header   blockrecord.Header
	Base     []byte
	TxIds    []merkle.Digest
	AssetIds []transactionrecord.AssetIndex
}

to send to proofer

type SubmittedItem

type SubmittedItem struct {
	Request string
	Job     string
	Packed  []byte
}

received from the proofer

Jump to

Keyboard shortcuts

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