utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortenedHash

func ShortenedHash(hash hornet.MessageID) string

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

func ShortenedIndex added in v1.0.0

func ShortenedIndex(cachedMsg *storage.CachedMessage) string

ShortenedIndex returns a shortened index or milestone index for the given message. this is used for the dot file.

func ShowDotFile

func ShowDotFile(testInterface testing.TB, dotCommand string, outFilePath string)

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

Types

type HDWallet added in v1.0.0

type HDWallet struct {
	// contains filtered or unexported fields
}

func NewHDWallet added in v1.0.0

func NewHDWallet(name string, seed []byte, index uint64) *HDWallet

func (*HDWallet) Address added in v1.0.0

func (hd *HDWallet) Address() *iotago.Ed25519Address

Address calculates an ed25519 address by using slip10.

func (*HDWallet) AddressSigner added in v1.1.0

func (hd *HDWallet) AddressSigner() iotago.AddressSigner

func (*HDWallet) Balance added in v1.0.0

func (hd *HDWallet) Balance() uint64

func (*HDWallet) BookOutput added in v1.0.0

func (hd *HDWallet) BookOutput(output *utxo.Output)

func (*HDWallet) BookSpent added in v1.0.0

func (hd *HDWallet) BookSpent(spentOutput *utxo.Output)

func (*HDWallet) BookSpents added in v1.0.0

func (hd *HDWallet) BookSpents(spentOutputs []*utxo.Output)

func (*HDWallet) KeyPair added in v1.0.0

func (hd *HDWallet) KeyPair() (ed25519.PrivateKey, ed25519.PublicKey)

KeyPair calculates an ed25519 key pair by using slip10.

func (*HDWallet) Name added in v1.0.0

func (hd *HDWallet) Name() string

func (*HDWallet) Outputs added in v1.0.0

func (hd *HDWallet) Outputs() []*utxo.Output

func (*HDWallet) PrintStatus added in v1.0.0

func (hd *HDWallet) PrintStatus()

Jump to

Keyboard shortcuts

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