prottest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package prottest provides utilities for Chain Protocol testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockKeyPairs

func BlockKeyPairs(c *protocol.Chain) ([]ed25519.PublicKey, []ed25519.PrivateKey)

BlockKeyPairs returns the configured block-signing key-pairs for the provided Chain.

func Initial

func Initial(tb testing.TB, c *protocol.Chain) *legacy.Block

Initial returns the provided Chain's initial block.

Types

type Option

type Option func(testing.TB, *config)

func WithBlockSigners

func WithBlockSigners(quorum, n int) Option

func WithOutputIDs

func WithOutputIDs(outputIDs ...bc.Hash) Option

func WithStore

func WithStore(store protocol.Store) Option

Directories

Path Synopsis
MemStore is a Store implementation that keeps all blockchain state in memory.
MemStore is a Store implementation that keeps all blockchain state in memory.

Jump to

Keyboard shortcuts

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