lightvalid

package
v1.7.7-unstable Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Overview

lightvalid package is a lightweight version of aquahash meant only for testing a nonce on a trusted block

Index

Constants

This section is empty.

Variables

View Source
var NoMixDigest = common.Hash{}

Functions

This section is empty.

Types

type Light

type Light struct{}

func New

func New() *Light

func (*Light) Verify

func (l *Light) Verify(block LightBlock) bool

Verify checks whether the block's nonce is valid.

type LightBlock

type LightBlock interface {
	Difficulty() *big.Int
	HashNoNonce() common.Hash
	Nonce() uint64
	MixDigest() common.Hash
	NumberU64() uint64
	Version() byte
}

Jump to

Keyboard shortcuts

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