-
Notifications
You must be signed in to change notification settings - Fork 296
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
Rework EffectHash #2808
Comments
Raising priority on this ticket, moving to top of Next column. We still need more discussion on design. The motivation for this work is to reduce the likelihood that a developer will overlook these interfaces and thereby introduce bugs; see for example https://github.com/penumbra-zone/penumbra/pull/2820/files. |
Some ideas after more discussion with @redshiftzero:
|
redshiftzero
moved this from Next (Steal from here)
to Testnet 59: Enceladus
in Testnets
Aug 11, 2023
hdevalence
added a commit
that referenced
this issue
Nov 15, 2023
I'd missed that this change wasn't already included in #2808. I thought that we'd moved to the simpler alternative of making the `EffectHash` just be the hash of all of the actions in the plan, and expecting the transaction builder to build the actions in the order they appear in the plan. Not doing this totally blows up the complexity of the changes we're trying to achieve now. However, making this change means that we can simply build the actions in the order they appear in the plan and get correct results.
hdevalence
added a commit
that referenced
this issue
Nov 17, 2023
I'd missed that this change wasn't already included in #2808. I thought that we'd moved to the simpler alternative of making the `EffectHash` just be the hash of all of the actions in the plan, and expecting the transaction builder to build the actions in the order they appear in the plan. Not doing this totally blows up the complexity of the changes we're trying to achieve now. However, making this change means that we can simply build the actions in the order they appear in the plan and get correct results.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a tracking ticket for modifying the
EffectHash
:H(fixed size hashes of per tx data packets || num actions || fixed size hashes per action)
EffectingData
implementations to hash the proto encoding of the body #2000, ensuring for each action that where needed the current data modeling separates the effecting data (e.g. SpendBody vs Spend), and that only that field is included in the effect hash - crypto: rework action-levelEffectingData
implementations #2931The text was updated successfully, but these errors were encountered: