Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Seed

Index

Constructors

constructor

  • new Seed(phrase: string, chainId?: undefined | string): Seed

Properties

Readonly address

address: string

Readonly keyPair

keyPair: { privateKey: string; publicKey: string }

Type declaration

  • privateKey: string
  • publicKey: string

Readonly phrase

phrase: string

Methods

encrypt

  • encrypt(password: string, encryptionRounds?: undefined | number): string
  • Parameters

    • password: string
    • Optional encryptionRounds: undefined | number

    Returns string

Static create

  • create(words?: number): Seed

Static decryptSeedPhrase

  • decryptSeedPhrase(encryptedSeedPhrase: string, password: string, encryptionRounds?: number): string
  • Parameters

    • encryptedSeedPhrase: string
    • password: string
    • Default value encryptionRounds: number = 5000

    Returns string

Static encryptSeedPhrase

  • encryptSeedPhrase(seedPhrase: string, password: string, encryptionRounds?: number): string
  • Parameters

    • seedPhrase: string
    • password: string
    • Default value encryptionRounds: number = 5000

    Returns string

Static fromExistingPhrase

  • fromExistingPhrase(phrase: string): Seed

Generated using TypeDoc