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)
}
Click to show internal directories.
Click to hide internal directories.