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

transaction signing helpers #742

Merged
merged 2 commits into from
Oct 4, 2024
Merged

transaction signing helpers #742

merged 2 commits into from
Oct 4, 2024

Conversation

arnetheduck
Copy link
Member

Transaction signing is something that happens in a lot of places - this PR introduces primitives for transaction signing in transaction_utils such that we can use the same logic across web3/eth1/etc for this simple operation.

transaction_utils also contains a few more "spec-derived" helpers for working with transactions, such as the computation of a contract address etc that cannot easily be introduced in transactions itself without bringing in dependencies like secp and rlp, so they end up in a separate module.

Finally, since these modules collect "versions" of these transaction types across different eips, some tests are moved to follow the same structure.

Transaction signing is something that happens in a lot of places - this
PR introduces primitives for transaction signing in `transaction_utils`
such that we can use the same logic across web3/eth1/etc for this simple
operation.

`transaction_utils` also contains a few more "spec-derived" helpers for
working with transactions, such as the computation of a contract address
etc that cannot easily be introduced in `transactions` itself without
bringing in dependencies like secp and rlp, so they end up in a separate
module.

Finally, since these modules collect "versions" of these transaction
types across different eips, some tests are moved to follow the same
structure.
@arnetheduck arnetheduck merged commit 4ea11b9 into master Oct 4, 2024
18 checks passed
@arnetheduck arnetheduck deleted the tx-sign branch October 4, 2024 11:46
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.

1 participant