walletutil

package
v0.0.0-...-c01c563 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MnemonicFromEncryptedWalletUseCase

type MnemonicFromEncryptedWalletUseCase interface {
	Execute(ctx context.Context, encryptedWalletBytes []byte, password *sstring.SecureString) (*sstring.SecureString, string, error)
}

func NewMnemonicFromEncryptedWalletUseCase

func NewMnemonicFromEncryptedWalletUseCase(
	config *config.Configuration,
	logger *slog.Logger,
	keystore hdkeystore.KeystoreAdapter,
) MnemonicFromEncryptedWalletUseCase

type OpenHDWalletFromMnemonicUseCase

type OpenHDWalletFromMnemonicUseCase interface {
	Execute(ctx context.Context, mnemonic *sstring.SecureString, path string) (*accounts.Account, *hdwallet.Wallet, error)
}

func NewOpenHDWalletFromMnemonicUseCase

func NewOpenHDWalletFromMnemonicUseCase(
	config *config.Configuration,
	logger *slog.Logger,
	keystore hdkeystore.KeystoreAdapter,
) OpenHDWalletFromMnemonicUseCase

type PrivateKeyFromHDWalletUseCase

type PrivateKeyFromHDWalletUseCase interface {
	Execute(ctx context.Context, mnemonic *sstring.SecureString, path string) (*ecdsa.PrivateKey, error)
}

func NewPrivateKeyFromHDWalletUseCase

func NewPrivateKeyFromHDWalletUseCase(
	config *config.Configuration,
	logger *slog.Logger,
	keystore hdkeystore.KeystoreAdapter,
) PrivateKeyFromHDWalletUseCase

Jump to

Keyboard shortcuts

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