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

Invalid Signature Error #152

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Invalid Signature Error #152

merged 1 commit into from
Jan 3, 2024

Conversation

nplasterer
Copy link
Contributor

Part of xmtp/xmtp-react-native#196

Sometimes when treating a public key as a number, for the purpose of doing math with it, and when you’re treating it as a fixed-size array of bytes, which is how you send it over the wire. In Kotlin it can remove the leading zeros making the array less than the required 64 bytes. This makes sure we are always sending a 64 byte array padding with zeros if smaller.

@nplasterer nplasterer self-assigned this Jan 3, 2024
@nplasterer nplasterer requested a review from a team as a code owner January 3, 2024 22:57
@nplasterer nplasterer merged commit 943314a into main Jan 3, 2024
6 checks passed
@nplasterer nplasterer deleted the np/invalid-sig-fix branch January 3, 2024 23:14
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.

3 participants