wallet

package
v0.0.0-...-e2bdea5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SingleKeyWallet = "singlekey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TapscriptsAddress

type TapscriptsAddress struct {
	Tapscripts []string
	Address    string
}

type WalletService

type WalletService interface {
	GetType() string
	Create(
		ctx context.Context, password, seed string,
	) (walletSeed string, err error)
	Lock(ctx context.Context, password string) (err error)
	Unlock(ctx context.Context, password string) (alreadyUnlocked bool, err error)
	IsLocked() bool
	GetAddresses(
		ctx context.Context,
	) (offchainAddresses, boardingAddresses, redemptionAddresses []TapscriptsAddress, err error)
	NewAddress(
		ctx context.Context, change bool,
	) (offchainAddr, onchainAddr *TapscriptsAddress, err error)
	NewAddresses(
		ctx context.Context, change bool, num int,
	) (offchainAddresses, onchainAddresses []TapscriptsAddress, err error)
	SignTransaction(
		ctx context.Context, explorerSvc explorer.Explorer, tx string,
	) (signedTx string, err error)
	SignMessage(
		ctx context.Context, message []byte,
	) (signature string, err error)
	Dump(ctx context.Context) (seed string, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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