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: coin base rules #99

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Conversation

SWvheerden
Copy link
Contributor

Description

Current implementation of the coinbase builder makes these 0, but we do not have a rule that specifies they have to be 0.

Motivation and Context

If they are not zero, you cannot do validation on the coinbase kernel.
The script_offset makes zero difference on the malleability of the kernel so its not required. There is also no spending script key, meaning you leak the private key to sender_offset key.
The transactions offset makes it impossible to test the value of the kernel in any block that has more than the coinbase transaction.

@SWvheerden SWvheerden changed the title fix coin base rules fix: coin base rules Jun 6, 2023
@CjS77 CjS77 merged commit 2a5edae into tari-project:main Jul 5, 2023
2 of 3 checks passed
@SWvheerden SWvheerden deleted the sw_fixcoinbaserules branch July 14, 2023 06:34
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.

None yet

3 participants