hippotesting

package module
v0.0.0-...-359582d Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 1 Imported by: 0

README

HippoTesting

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBase

type BlockBase interface {
	Init(interface{}) error
	AddTransaction(TransactionBase) (bool, error)
}

BlockBase ... The Interface for a block using HippoTesting Platform.

type ClientBase

type ClientBase interface {
	Init(interface{}) error
	Run() error
	SetGood() error
	SetEvil() error
	SetHashFunction(HashFunction) error
	GetHashFunction() HashFunction
	Pause() error
	Stop() error

	GetGenisis() *BlockBase

	GetKeyPair() *KeyPair

	Sync() error
}

ClientBase ... The Interface for a coin using HippoTesting Platform.

type HashFunction

type HashFunction func([]byte) []byte

HashFunction ...

type KeyPair

type KeyPair struct {
	PublicKey  crypto.PublicKey
	PrivateKey crypto.PrivateKey
}

KeyPair ...

func NewKeyPair

func NewKeyPair(publicKey crypto.PublicKey, privateKey crypto.PrivateKey) *KeyPair

NewKeyPair ...

type TransactionBase

type TransactionBase interface {
	Init(interface{}) error
}

TransactionBase interface ... The Interface for a block using HippoTesting Platform.

Jump to

Keyboard shortcuts

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