Skip to content

[BUG] Adding a key to a Blocto managed wallet renders the wallet unusable #46

@cybercent

Description

@cybercent

Note:
This is an issue with the Blocto wallet backend on Flow.
I posted this issue here as there is no public repository for Blocto wallet backend.


Reproduce

  1. Go to Flow port and add a new key to your Blocto wallet.
  2. Send any transaction.
  3. The transaction will fail with an invalid signature error.

Issue

It appears that Blocto assumes that:

  • a blocto wallet has only 3 keys and
  • all keys are managed by Blocto

Fix

Instead of using keys.last and assuming the key is managed by Blocto, either

  • use keys[2] (when account was created by Blocto)
  • or check if the key at a specific index is a managed by Blocto before signing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions