tuiutils

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessKeychain added in v1.1.0

func AccessKeychain(endpoint string, seed []byte) (*archethic.Keychain, error)

func AddServiceToKeychain added in v1.1.0

func AddServiceToKeychain(accessSeed []byte, endpoint string, serviceName string, serviceDerivationPath string) (string, error)

func CreateKeychain added in v1.1.0

func CreateKeychain(url string, accessSeed []byte) (string, string, string, string, error)

func ExtractSeedFromMnemonic added in v1.1.0

func ExtractSeedFromMnemonic(words string) ([]byte, error)

func GetCurveName

func GetCurveName(h archethic.Curve) string

func GetHashAlgorithmName

func GetHashAlgorithmName(h archethic.HashAlgo) string

func GetLastTransactionIndex added in v1.1.0

func GetLastTransactionIndex(url string, curve archethic.Curve, seed []byte) (uint, error)

func GetSSHPrivateKey added in v1.1.0

func GetSSHPrivateKey(privateKeyPath string) ([]byte, error)

func GetSeedBytes added in v1.1.0

func GetSeedBytes(flags *pflag.FlagSet, sshFlagKey, sshPathFlagKey, seedFlagKey, mnemonicFlag string) ([]byte, error)

func GetTransactionFee added in v1.1.0

func GetTransactionFee(transaction *archethic.TransactionBuilder, secretKey []byte, curve archethic.Curve, serviceMode bool, endpoint string, transactionIndex uint, serviceName string, storageNouncePublicKey string, seed []byte) (archethic.Fee, error)

func GetTransactionFeeJson added in v1.1.0

func GetTransactionFeeJson(transaction *archethic.TransactionBuilder, secretKey []byte, curve archethic.Curve, serviceMode bool, endpoint string, transactionIndex uint, serviceName string, storageNouncePublicKey string, seed []byte) (string, error)

func RemoveServiceFromKeychain added in v1.1.0

func RemoveServiceFromKeychain(accessSeed []byte, endpoint string, serviceName string) (string, error)

func SendTransaction added in v1.1.0

func SendTransaction(transaction *archethic.TransactionBuilder, secretKey []byte, curve archethic.Curve, serviceMode bool, endpoint string, transactionIndex uint, serviceName string, storageNouncePublicKey string, seed []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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