test

package
v0.0.0-...-be3778f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidPrivateKey = []byte(strings.ToUpper(privateKey))
View Source
var InvalidPublicKey = []byte(strings.ToUpper(publicKey))
View Source
var ValidPrivateKey = []byte(privateKey)
View Source
var ValidPublicKey = []byte(publicKey)

Functions

func Encode

func Encode(b []byte) []byte

Encode converts a binary byte stream into its printable encoding.

func FactoryRandomAddressTrytesString

func FactoryRandomAddressTrytesString() string

FactoryRandomAddressTrytesString returns Trytes for an Address of a fixed length with a random value.

func FactoryRandomFixedLengthTrytesString

func FactoryRandomFixedLengthTrytesString(length int) string

FactoryRandomFixedLengthTrytesString returns a Trytes of a fixed length with a random value.

func FactoryRandomFixedSizeBundle

func FactoryRandomFixedSizeBundle(size int) bundle.Bundle

FactoryRandomFixedSizeBundle returns a Bundle of a fixed size with random transaction values with a random length.

func FactoryRandomSeedString

func FactoryRandomSeedString() string

FactoryRandomSeedString returns an IOTA Tangle seed with a random value.

func Marshal

func Marshal(t *testing.T, content interface{}) string

Marshal is a factory method that returns json-marshalled content.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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