This repository was archived by the owner on Jun 7, 2023. It is now read-only.
RFC: trits-t9b2 encoding - #8
Draft
Alex6323 wants to merge 1 commit into
Draft
Conversation
wusyong
reviewed
Sep 20, 2019
|
|
||
| # Summary | ||
|
|
||
| This feature introduces a special trits encoding to Bee that might be referred to as `9trits/2bytes`, `9t/2b`, or simply `9/2`, or maybe even `4.5trits/byte` encoding. In comparison there is the `10trits/2bytes`, `10t/2b`, or `5trits/byte`, or just `10/2` alternative encoding which is currently used in IOTAs reference implementation IRI. In contrast to that the `9/2` encoding is less memory/bandwidth efficient, but on the other hand is more optimized for byte-wise data processing. This encoding was successfully used already in the Ict node software which was intended to be able to run on weaker devices like Raspberry Pis which is also a primary objective for the Bee node framework. It can be expected that this encoding will positively affect a node's performance by: |
There was a problem hiding this comment.
Yeah, we really need to come up with better naming method for this. Vlad has a rule for this which is TE. So TE1 means 1 trit per byte, TE5 mean 5 trits per byte. What do you think.
|
|
||
| TODO: FINISH THIS SECTION | ||
|
|
||
| **Example transaction implementation based on 9/2 encoding**: This example assumes that a trivial trimming algorithm is used that only trims the 0 bytes from the signature message fragment. |
There was a problem hiding this comment.
Really appreciate the example. We may also need to know what basic data structure looks like (maybe like #5 )
|
|
||
| # Unresolved questions | ||
|
|
||
| TODO No newline at end of file |
There was a problem hiding this comment.
Could you provide how to interact with hashing? Like could it do operations directly or need some conversions.
Contributor
|
Can you add a paragraph on how conversion from/to raw trits would work ? |
9trits per 2bytes encoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rendered