Constructors

Properties

keypair: IKeyPair = ...
loggedIn: boolean = false
stringified_keypair: IStringifiedKeyPair = ...
_instance: DemosWebAuth = ...

Methods

  • Parameters

    • seed: string = ""

    Returns Promise<[boolean, IStringifiedKeyPair]>

  • Parameters

    • privKey: string | boolean | Uint8Array<ArrayBufferLike>

    Returns Promise<[boolean, string]>

  • Returns Promise<(string | boolean)[]>

    Disconnects a wallet from the Demos chain

  • Parameters

    • message: any
    • s_signature: any
    • s_publicKey: any

    Returns Promise<(string | boolean)[]>

  • Creates a new keypair from a seed

    Parameters

    • mnemonic: string | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>

      White-space separated string of words or a bip39 seed buffer

    Returns {}

    A new keypair