Skip to content

Conversation

@dkatzan
Copy link
Contributor

@dkatzan dkatzan commented Jul 29, 2025

Rename the private sigHash() method to public Hash() method for SetCodeAuthorization to maintain consistency with other transaction types and enable easier transaction handling without using default signing capabilities.

Fixes #32297

🤖 Generated with Claude Code

Rename the private sigHash() method to public Hash() method for
SetCodeAuthorization to maintain consistency with other transaction
types and enable easier transaction handling without using default
signing capabilities.

Fixes ethereum#32297

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dkatzan dkatzan requested a review from rjl493456442 as a code owner July 29, 2025 20:45
@rjl493456442
Copy link
Member

sigHash and Hash are semantically different.
Can you elaborate any scenario you need to access sigHash directly? Why not use SignSetCode instead?

@dkatzan
Copy link
Contributor Author

dkatzan commented Jul 30, 2025

Hi @rjl493456442
Thx, for u comment, I wasn't aware they are semantically different (what is the difference?)
I'm using a different method for signing (MPC signing), so I'm interested in getting the sigHash in order to be able to sign it independently without passing in a private key

will renaming sigHash to SigHash make sense?

@rjl493456442
Copy link
Member

will renaming sigHash to SigHash make sense?

Yes please.

@dkatzan
Copy link
Contributor Author

dkatzan commented Jul 30, 2025

@rjl493456442 Done, can u plz review?

@rjl493456442 rjl493456442 added this to the 1.16.2 milestone Jul 31, 2025
@rjl493456442 rjl493456442 merged commit 2d95ba7 into ethereum:master Jul 31, 2025
2 of 3 checks passed
howjmay pushed a commit to iotaledger/go-ethereum that referenced this pull request Aug 27, 2025
gballet pushed a commit to gballet/go-ethereum that referenced this pull request Sep 11, 2025
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.

Expose sigHash for SetCodeAuthorization

2 participants