Documentation
    Preparing search index...

    Function resolveMockUser

    • Resolve a shell-user option (alice, a fixture name, or a hex pubkey) to a hex pubkey. Unknown names fall back to mockPubkey(name).

      Parameters

      • user: string | undefined

        Account name or pubkey. Default alice.

      Returns string

      Hex pubkey, or '' when user is the empty string (signed out).

      resolveMockUser('bob') === MOCK_ACCOUNTS[1].pubkey;