identity

package
v0.0.0-...-299b7ad Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SingleKeyIdentity = "singlekey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity interface {
	GetType() string
	Create(
		ctx context.Context, network chaincfg.Params, password, seed string,
	) (autoGeneratedSeed string, err error)
	Lock(ctx context.Context) (err error)
	Unlock(ctx context.Context, password string) (alreadyUnlocked bool, err error)
	IsLocked() bool
	NextKeyId(ctx context.Context, id string) (string, error)
	GetKeyIndex(ctx context.Context, id string) (index uint32, err error)
	NewKey(ctx context.Context) (key *KeyRef, err error)
	GetKey(ctx context.Context, id string) (key *KeyRef, err error)
	ListKeys(ctx context.Context) (keys []KeyRef, err error)
	SignTransaction(
		ctx context.Context, tx string, keys map[string]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) (tree.SignerSession, error)
}

type KeyRef

type KeyRef struct {
	// Id can be anything and it's up to implementation whether it is, for example, a derivation
	// path or just a derivation index
	Id     string
	PubKey *btcec.PublicKey
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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