Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccountManagerImpl

Implements

Index

Constructors

constructor

Methods

authenticationByAccessToken

  • authenticationByAccessToken(accessToken: string, tokenType: TokenType, message: string): Promise<Account>

authenticationByPassPhrase

  • authenticationByPassPhrase(passPhrase: string, message: string): Promise<Account>
  • Checks or Register user with provided mnemonic phrase is already registered in the system.

    Parameters

    • passPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} if client exist or create new user.

checkAccount

  • checkAccount(mnemonicPhrase: string, message: string): Promise<Account>
  • Checks if user with provided mnemonic phrase is already registered in the system.

    Parameters

    • mnemonicPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} if client exist or http exception if fail.

getAccount

getNewMnemonic

  • getNewMnemonic(): Promise<string>

getPublicKeyFromMnemonic

  • getPublicKeyFromMnemonic(mnemonicPhrase: string): Promise<string>

registration

  • registration(mnemonicPhrase: string, message: string): Promise<Account>
  • Registers a new user in the system.

    Parameters

    • mnemonicPhrase: string

      Mnemonic phrase for Public/Private key pair generation for asymmetric encryption scheme.

    • message: string

      on the basis of which a signature will be created to verify the public key

    Returns Promise<Account>

    {Account} after successful registration or http exception if fail.

subscribeAccount

  • subscribeAccount(): Observable<Account>

unsubscribe

  • unsubscribe(): Promise<void>

Generated using TypeDoc