Skip to content

Proto: contract-compatible encodings for implicit and originated accounts

Mehdi Bouaziz requested to merge mehdi@compatible-encodings into master

Context

The encoding of Contract or Destination is sometimes used when we only needed an implicit or originated account.

This MR provides encodings for them that are backward-compatible for the one of Contract. I should be used for the storage to avoid a migration or operations for which we don't want to change the encoding.

They are also the de-facto encoding to use for forward-compatibility, e.g. if you build something that works only for originated accounts but may want to later support implicit accounts too.

Previous related MR: !5188 (merged)

Manually testing the MR

🐫

See !5224 (merged) for a usage of it

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Mehdi Bouaziz

Merge request reports