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

Bech32 "preview" implementation #113

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

tony-iqlusion
Copy link
Member

@tony-iqlusion tony-iqlusion commented Oct 16, 2018

This merges the iq-bech32 crate into subtle-encoding.

The current implementation is NOT constant time, and is gated under the "bech32-preview" cargo feature with appropriate scare copy for turning it on.

This WIP PR shows step 1 of 2 for converting the implementation to constant-time:

#71

The Bech32 alphabet also needs a constant time implementation, which can be implemented in a similar manner to the Base64 code (with a lot more "branches" for the Bech32 character mapping). I plan on creating an Accumulator type which will simplify the implementation (and can also be used for the Base64 and hex impls)

This merges the iq-bech32 crate into subtle-encoding.

The current implementation is NOT constant time, and is gated under the
"bech32-preview" feature with appropriate scare copy for turning it on.

This WIP PR shows step 1 of 2 for converting the implementation to
constant-time:

#71

The Bech32 alphabet also needs a constant time implementation, which can
be implemented in a similar manner to the Base64 code (with a lot more
"branches" for the Bech32 character mapping).
@tarcieri tarcieri force-pushed the subtle-encoding/bech32-preview branch from 5887858 to a9cbe1f Compare October 16, 2018 18:24
@tony-iqlusion tony-iqlusion merged commit 7ce5e44 into master Oct 16, 2018
@tony-iqlusion tony-iqlusion deleted the subtle-encoding/bech32-preview branch October 16, 2018 18:33
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.

None yet

1 participant