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

fix double-encoding-to-vec on crypto signing responses #438

Merged
merged 3 commits into from
Apr 12, 2023

Conversation

jeffgrunewald
Copy link
Contributor

@jeffgrunewald jeffgrunewald commented Apr 11, 2023

corrects a bug where we're calling encode_to_vec on messages to sign and then passing that encoded response to a service impl method that does the same encoding again, thereby double-encoding the response before sending

also removes the filter/setting/checks in the config services for helium crypto keys to be set to a particular Helium L1 network (mainnet vs. testnet) since this is likely no longer a valuable distinction to be made

Copy link
Contributor

@andymck andymck left a comment

Choose a reason for hiding this comment

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

surprised clippy did not highlight the double encoding

@jeffgrunewald jeffgrunewald merged commit 2b875f9 into main Apr 12, 2023
@jeffgrunewald jeffgrunewald deleted the jg/dont-double-encode-to-vec branch April 12, 2023 18:08
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.

4 participants