Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix an Encoding Bug (200 Gold) #9

Open
mikera opened this issue Jul 2, 2021 · 0 comments
Open

Fix an Encoding Bug (200 Gold) #9

mikera opened this issue Jul 2, 2021 · 0 comments
Labels

Comments

@mikera
Copy link
Member

mikera commented Jul 2, 2021

All CVM Values (and constituent Cells) have an Encoding, which is a unique representation of the Cell value in a byte sequence.

This bounty is for finding an Encoding bug and fixing it.

Requirements:

  • A test case must be created that proved a failure in a fundamental Encoding rule, for example:
    • Two different Encodings that produce the same Cell value (as tested with ACell.equals)
    • Two different Cell values that produce the same Encoding
    • An Encoding which appears to produce a valid Cell (can be decoded successfully with Format.readXXX and passes ACell.validateXXX) but in fact the Cell has some flaw (i.e. a violated invariant that may break assumptions elsewhere in the code base)
  • The root cause of the issue must be identified
  • A PR must be contributed and accepted that adds the test case, and fixes the defect
  • If appropriate, a PR must be contributed and accepted that updates the Encoding CAD (https://github.com/Convex-Dev/design/tree/main/cad/003_encoding)
@mikera mikera added the bounty label Jul 2, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant