Skip to content
This repository was archived by the owner on Sep 13, 2025. It is now read-only.
This repository was archived by the owner on Sep 13, 2025. It is now read-only.

Converting back to the original form #3

Description

@vbakke

Given the nature of this conversion, I think terms like asciiToTrytes and trytesToAscii will be confusing. Since they will not match perfectly both ways. (The square peg, round hole issue.)

Why do we convert?

We don't convert for fun. And I think we always want to convert back to the original form. For example, text message to trytes for the transaction, should be converted back to text. Iota seed that may need to be converted to bytes for AES encryption, but is of no use, unless it is converted back to the original seed.

Native

I suggest that we emphasis a native side, and an encoded/converted side. And that the function names emphasis this issue.

Good example is how @todofixthis renamed function to encode() and decode() in iota.lib.py.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions