Documentation
¶
Index ¶
Constants ¶
View Source
const (
SingleKeyWallet = "singlekey"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TapscriptsAddress ¶
type WalletService ¶
type WalletService interface {
GetType() string
Create(
ctx context.Context, password, seed string,
) (walletSeed string, err error)
Lock(ctx context.Context) (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)
NewVtxoTreeSigner(ctx context.Context, derivationPath string) (tree.SignerSession, error)
}
Click to show internal directories.
Click to hide internal directories.