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) don't mutably multiply numbers when generating signatures #121

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

rrw-zilliqa
Copy link
Contributor

(fix) It is not generally safe to mutably multiply a bigint, though it does work if the number you are multiplying by is big enough (probably because either the result vector is reallocated or you just don't happen to write to a storage location before you've finished reading it).

Closes #120

…t does work if the number you are multiplying by is big enough (probably because either the result vector is reallocated or you just don't happen to write to a storage location before you've finished reading it).
@rrw-zilliqa rrw-zilliqa enabled auto-merge (squash) October 8, 2024 09:49
Copy link
Contributor

@JamesHinshelwood JamesHinshelwood left a comment

Choose a reason for hiding this comment

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

"Why Rust is objectively better than Go"

@rrw-zilliqa rrw-zilliqa merged commit 780f17a into master Oct 8, 2024
2 checks passed
@rrw-zilliqa rrw-zilliqa deleted the users/richard/120-invalid-signatures branch October 8, 2024 10:25
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.

Small private keys (eg 0x2) produce invalid signatures
2 participants