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

Move RSK output to be the last output #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ignaciopulicedonatto
Copy link

To avoid possible malleability attacks, RSK discards solutions with more than 128 bytes after RSK tag.
Therefor, RSK output should be one of the last or the last output in the Coinbase.

RSKd code condition could be found here:
https://github.com/rsksmart/rskj/blob/master/rskj-core/src/main/java/co/rsk/validators/ProofOfWorkRule.java#L202

To avoid possible malleability attacks, RSK discards solutions with more than 128 bytes after RSK tag.
Therefor, RSK output should be one of the last or the last output in the Coinbase.

RSKd code condition could be found here:
https://github.com/rsksmart/rskj/blob/master/rskj-core/src/main/java/co/rsk/validators/ProofOfWorkRule.java#L202
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.

2 participants