utils

package
v0.5.8-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddress

func GenerateAddress(t *testing.T, seed trinary.Trytes, index uint64) hornet.Hash

GenerateAddress generates an address for the given seed and index with medium security.

func ShortenedHash

func ShortenedHash(hash hornet.Hash) string

ShortenedHash returns a shortened trinary hash for the given hash. this is used for the dot file.

func ShortenedTag

func ShortenedTag(bundle *tangle.CachedBundle) string

ShortenedTag returns a shortened tag or milestone index for the given bundle. this is used for the dot file.

func ShowDotFile

func ShowDotFile(t *testing.T, dotCommand string, outFilePath string)

ShowDotFile creates a png file with dot and shows it in an external application.

func ValueTx

func ValueTx(t *testing.T, tag trinary.Trytes, fromSeed trinary.Trytes, fromIndex uint64, balance uint64, toSeed trinary.Trytes, toIndex uint64, value uint64) []trinary.Trytes

ValueTx creates a value transaction with the given tag from an input seed index to an address created by a given output seed and index.

func ZeroValueTx

func ZeroValueTx(t *testing.T, tag trinary.Trytes) []trinary.Trytes

ZeroValueTx creates a zero value transaction to a random address with the given tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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