Skip to content

Conversation

@jeffro256
Copy link
Contributor

Serialization/deserialization code in tx_extra.h treats the nonce length as a varint, but cryptonote::add_extra_nonce_to_tx_extra() writes the nonce length as a raw unsigned 8-bit integer. For nonce sizes in $[128, 256)$, these two sections diverge. This commit amends cryptonote::add_extra_nonce_to_tx_extra() to match the serialization code.

Issue identified by the Monero Oxide project and reporters.

@jeffro256
Copy link
Contributor Author

Unit test failure is unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants