modules

package
v0.0.0-...-fa20899 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeTransaction

func EncodeTransaction(txn siatypes.Transaction, callback js.Value)

EncodeTransaction uses the MarshalSia function to encode the transaction to bytes

func GenerateSeed

func GenerateSeed(seedType string, callback js.Value)

GenerateSeed generates a new 12 or 29 word seed phrase

func GetAddresses

func GetAddresses(phrase string, i uint64, n uint64, callback js.Value)

GetAddresses generates n addresses using the seed phrase starting at index i

func GetTransactions

func GetTransactions(addresses []string, callback js.Value)

GetTransactions gets all transactions belonging to the addresses

func RecoverAddresses

func RecoverAddresses(seed string, i uint64, minRounds uint64, addressCount uint64, callback js.Value)

RecoverAddresses scans for addresses on the blockchain addressCount at a time up to a maximum of 100,000,000 addresses. Considers all addresses found if the scan goes more than minRounds * addressCount addresses without seeing any used. It's possible the ranges will need to be tweaked for older or larger wallets

func SignTransaction

func SignTransaction(txn siatypes.Transaction, phrase string, requiredSignatures []uint64, callback js.Value)

SignTransaction signs a transaction using the seed and required signatures

Types

This section is empty.

Jump to

Keyboard shortcuts

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