Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Wallet

A is a generic interface for managing a set of keys and signing data with them.

A Wallet is responsible for storing private keys securely and signing with them. Wallet can be implemented in software or as a bridge to a hardware wallet.

Hierarchy

Implemented by

Index

Properties

clone

clone: function

Type declaration

createIdentity

createIdentity: function

Creates a new identity in the wallet.

The identity is bound to one chain ID to encourage using different keypairs on different chains.

Type declaration

createTransactionSignature

createTransactionSignature: function

Created a detached signature for the signable bytes with the private key that matches the given Identity.

If a matching Identity is not present in this wallet, an error is thrown.

Type declaration

getIdentities

getIdentities: function

Returns all identities currently registered

Type declaration

    • (): keyof Identity[]
    • Returns keyof Identity[]

getIdentityLabel

getIdentityLabel: function

Gets a local label associated with the public identity to be displayed in the UI.

Type declaration

    • (identity: Identity): string | undefined
    • Parameters

      Returns string | undefined

id

implementationId

label

label: ValueAndUpdates<string | undefined>

previewIdentity

previewIdentity: function

Creates a new identity from the wallet's secret but does not store it.

This allows the Keyring to check for duplicate identities before they are persisted.

Type declaration

printableSecret

printableSecret: function

Exposes the secret data of this wallet in a printable format for backup purposes.

The format depends on the implementation and may change over time, so do not try to parse the result or make any kind of assumtions on how the result looks like.

Type declaration

    • (): string
    • Returns string

serialize

serialize: function

setIdentityLabel

setIdentityLabel: function

Sets a local label associated with the public identity to be displayed in the UI. To clear a label, set it to undefined

Type declaration

    • (identity: Identity, label: string | undefined): void
    • Parameters

      • identity: Identity
      • label: string | undefined

      Returns void

setLabel

setLabel: function

Sets a label for this wallet to be displayed in the UI. To clear the label, set it to undefined.

Type declaration

    • (label: string | undefined): void
    • Parameters

      • label: string | undefined

      Returns void

Generated using TypeDoc