Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot verify an app link correctly #661

Closed
RiccardoM opened this issue Oct 26, 2021 · 0 comments · Fixed by #662
Closed

Cannot verify an app link correctly #661

RiccardoM opened this issue Oct 26, 2021 · 0 comments · Fixed by #662
Assignees
Labels
kind/bug Something isn't working x/profiles Module that allows to create and manage decentralized social profiles
Milestone

Comments

@RiccardoM
Copy link
Contributor

Bug description

Currently it's not possible to verify an application link correctly due to how data is returned from the Band oracle right now.

Steps to reproduce

  1. Create an application link and try to verify it
  2. The link will fail the verification even if the Band oracle completes successfully

Expected behavior

The link should be verified correctly and it's status should be set to APPLICATION_LINK_STATE_VERIFICATION_SUCCESS

Bug breakdown

This bug was introduced with #652. Inside such PR we changed the application links so that their value must be hex-encoded. However, when an application link verification has been completed by Band, before updating its state to APPLICATION_LINK_STATE_VERIFICATION_SUCCESS we require that the returned value from Band oracle is equals to the username specified from the user. Since the Band result is HEX-encoded and the username provided by the user is UTF-8 encoded, this check can never succeed result in all links erroring with the error invalid application username.

@RiccardoM RiccardoM added kind/bug Something isn't working x/profiles Module that allows to create and manage decentralized social profiles labels Oct 26, 2021
@RiccardoM RiccardoM self-assigned this Oct 26, 2021
@RiccardoM RiccardoM added this to the v2.1.1 milestone Oct 26, 2021
@mergify mergify bot closed this as completed in #662 Oct 26, 2021
mergify bot pushed a commit that referenced this issue Oct 26, 2021
## Description
This PR fixes the applications links from not being verified correctly
Closes: #661

<!-- Add a description of the changes that this PR introduces and the files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR Targeting](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://docs.cosmos.network/v0.44/building-modules/intro.html)
- [x] included the necessary unit and integration [tests](https://github.com/desmos-labs/desmos/blob/master/CONTRIBUTING.md#testing)
- [x] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working x/profiles Module that allows to create and manage decentralized social profiles
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant