test

package
v0.0.0-...-f39f649 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericEnclaveTest

func GenericEnclaveTest(t *testing.T, enc tee.Enclave)

func NewTx

func NewTx(rng *rand.Rand) *tee.Transaction

NewTx creates a new unsigned random transaction.

func NewTxFrom

func NewTxFrom(rng *rand.Rand, sender common.Address) *tee.Transaction

NewTxFrom creates a new unsigned random transaction with the given sender.

func NewTxFromTo

func NewTxFromTo(rng *rand.Rand, sender, recipient common.Address) *tee.Transaction

NewTxFromTo creates a new unsigned transaction from a random sender to another random recipient.

func RandomBP

func RandomBP(rng *rand.Rand) *tee.BalanceProof

func RandomBalance

func RandomBalance(rng *rand.Rand) tee.Balance

func RandomDP

func RandomDP(rng *rand.Rand) *tee.DepositProof

func RandomSig

func RandomSig(rng io.Reader) tee.Sig

RandomSig produces invalid ECDSA signatures, but does not need a wallet to work.

func RandomTx

func RandomTx(t *testing.T, rng *rand.Rand) *tee.Transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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