Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReadonlyWallet

An interface that does not allow mutating any internal state of the Wallet

Hierarchy

Index

Properties

clone

clone: function

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

Generated using TypeDoc