validation

package
v0.0.0-...-ff6bfbe Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package validation implements the block-validation algorithms from the Chain Protocol spec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Block

func Block(b *bc.UnsignedBlock, prev *bc.BlockHeader) error

Block validates a block and the transactions within. It does not check the predicate; for that, see ValidateBlockSig.

func BlockOnly

func BlockOnly(b *bc.UnsignedBlock) error

BlockOnly performs those parts of block validation that depend only on the block and not on the previous block header. TODO(eric): consider another name

func BlockPrev

func BlockPrev(b *bc.UnsignedBlock, prev *bc.BlockHeader) error

BlockPrev performs those parts of block validation that require the previous block's header.

func BlockSig

func BlockSig(b *bc.Block, predicate *bc.Predicate) error

BlockSig checks the predicate against b.

Types

This section is empty.

Jump to

Keyboard shortcuts

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