Options
All
  • Public
  • Public/Protected
  • All
Menu

Crypto utility inteface decribes methods for mnemonic phrase generation and Bitcoin/Ethereum address validation.

Hierarchy

  • Utils

Index

Methods

generateMnemonic

  • generateMnemonic(wordCount: number): Promise<string>
  • Generates mnemonic seed phrase used in wallet creation process.

    Parameters

    • wordCount: number

      12, 15, 18, 21 or 24

    Returns Promise<string>

isValidBtcAddress

  • isValidBtcAddress(address: string, network: Network): Promise<boolean>
  • Validates Bitcoin address on a given network.

    Parameters

    • address: string

      Bitcoin address

    • network: Network

      network type, either 'MAINNET' or 'TESTNET'

    Returns Promise<boolean>

isValidEthAddress

  • isValidEthAddress(address: string): Promise<boolean>
  • Validates Ethereum address.

    Parameters

    • address: string

      Ethereum address

    Returns Promise<boolean>

Legend

  • Property
  • Method
  • Inherited property
  • Static property

Generated using TypeDoc