Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new MnemonicQR(mnemonic: MnemonicPassPhrase, password: string, networkType: NetworkType, generationHash: string): MnemonicQR
  • Construct a Mnemonic Export QR Code out of the MnemonicPassPhrase and Password instances.

    Parameters

    • mnemonic: MnemonicPassPhrase
    • password: string
    • networkType: NetworkType
    • generationHash: string

    Returns MnemonicQR

Properties

Optional base64

base64: string

generationHash

generationHash: string

mnemonic

mnemonic: MnemonicPassPhrase

The mnemonic pass phrase to be exported

var

{MnemonicPassPhrase}

networkType

networkType: NetworkType

The network type.

var

{NetworkType}

password

password: string

The password for encryption

var

{string}

type

The QR Code type.

var

{QRCodeType}

Methods

getCorrectionLevel

getSchema

getTypeNumber

  • getTypeNumber(): number

toBase64

  • Generate QRcode image Base64.

    The returned string can be put in the src attribute of a <img /> tag directly in HTML. The produced image will be a PNG.

    Parameters

    • Default value settings: QRCodeSettings = new QRCodeSettings()

      (Optional) Settings for generation

    Returns Observable<string>

    Return image data in Base64.

toCanvas

toJSON

  • toJSON(): string

toObject

toString

Static fromJSON

  • fromJSON(json: string, password: string): MnemonicQR
  • Parse a JSON QR code content into a MnemonicQR object.

    throws

    {Error} On empty json given.

    throws

    {Error} On missing type field value.

    throws

    {Error} On unrecognized QR code type field value.

    Parameters

    • json: string
    • password: string

    Returns MnemonicQR

Generated using TypeDoc