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

did-simple: implement varint encoding #96

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

TheButlah
Copy link
Contributor

Implements varint encoding in a const fn.

@TheButlah
Copy link
Contributor Author

TheButlah commented May 18, 2024

please give this an actual review, not just a lgtm stamp

@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from 6c6da1b to f8e9c6c Compare May 18, 2024 23:13
@TheButlah TheButlah marked this pull request as ready for review May 18, 2024 23:13
@TheButlah TheButlah enabled auto-merge (squash) May 18, 2024 23:14
@TheButlah TheButlah disabled auto-merge May 18, 2024 23:15
@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from f8e9c6c to 07afa0f Compare May 18, 2024 23:16
@TheButlah TheButlah changed the title did-simple: implement varint encoding did-simple: implement varint encoding, improve decoding, add pubkey accessor May 19, 2024
@TheButlah TheButlah changed the title did-simple: implement varint encoding, improve decoding, add pubkey accessor did-simple: implement varint encoding May 19, 2024
@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from 0c19d66 to 07afa0f Compare May 19, 2024 04:19
@TheButlah TheButlah requested review from MalekiRe and kayhhh May 19, 2024 04:19
@TheButlah TheButlah enabled auto-merge (squash) May 19, 2024 06:53
@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from 07afa0f to 0962abe Compare May 19, 2024 06:55
TheButlah added a commit that referenced this pull request May 19, 2024
@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from 6d03ed4 to 0962abe Compare May 19, 2024 07:01
@TheButlah TheButlah disabled auto-merge May 19, 2024 07:02
@TheButlah TheButlah enabled auto-merge (squash) May 19, 2024 07:02
@TheButlah TheButlah force-pushed the thebutlah/encode_varint branch from 0962abe to bc96ea0 Compare May 19, 2024 07:11
@TheButlah TheButlah disabled auto-merge May 19, 2024 15:58
Copy link

@lyuma lyuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok from my limited understanding of Rust, There are three cases: 1, 2 and 3 byte length, and each of the three cases should work.

I have a comment about the 0 case, since that should fall under case 1, but it seems to return length 0 instead, and I'm not sure if that is legal within the contract of this API

@TheButlah TheButlah merged commit 021442c into main May 20, 2024
3 checks passed
@TheButlah TheButlah deleted the thebutlah/encode_varint branch May 20, 2024 03:13
TheButlah added a commit that referenced this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants