transaction

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TxRecipientPID peer.ID

TxRecipientPID is the recipient in transactions generated by NewTransaction.

View Source
var TxSenderPID peer.ID

TxSenderPID is the sender in transactions generated by NewTransaction.

Functions

func NewKeyPair

func NewKeyPair() (ic.PrivKey, ic.PubKey, []byte, error)

NewKeyPair returns key pair and peer ID.

func NewRewardTransaction

func NewRewardTransaction(t *testing.T, value uint64) *pb.Transaction

NewRewardTransaction creates a new reward transaction.

func NewTransaction

func NewTransaction(t *testing.T, value, fee, nonce uint64) *pb.Transaction

NewTransaction creates a properly signed transaction.

func NewTransactions

func NewTransactions(t *testing.T, txCount int) []*pb.Transaction

NewTransactions creates a set of random transactions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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