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

Blob Transactions (EIP-4844) - Part 2 #1740

Merged
merged 50 commits into from
Mar 11, 2024
Merged

Blob Transactions (EIP-4844) - Part 2 #1740

merged 50 commits into from
Mar 11, 2024

Conversation

jxom
Copy link
Member

@jxom jxom commented Jan 25, 2024

Support for signing & sending EIP-4844 Blob Transactions.


PR-Codex overview

This PR introduces support for signing and sending blob transactions, along with blob utilities.

Detailed summary

  • Added support for signing and sending blob transactions
  • Added blob utilities
  • Updated dependencies and configurations
  • Refactored signature handling functions
  • Adjusted transaction serialization logic
  • Implemented setup for KZG commitments and proofs

The following files were skipped due to too many changes: src/types/eip4844.ts, src/utils/signature/compactSignatureToSignature.test.ts, src/utils/encoding/toRlp.ts, src/utils/transaction/parseTransaction.bench.ts, src/types/chain.ts, src/chains/opStack/actions/proveWithdrawal.ts, src/chains/opStack/actions/finalizeWithdrawal.ts, src/utils/blob/fromBlobs.test.ts, src/types/misc.ts, src/chains/zksync/types/eip712.ts, src/utils/signature/signatureToHex.test.ts, src/actions/wallet/sendRawTransaction.ts, src/chains/opStack/serializers.test.ts, src/utils/kzg/defineKzg.ts, src/constants/blob.ts, src/utils/formatters/transaction.ts, src/utils/signature/signatureToCompactSignature.ts, site/pages/docs/actions/public/getBlobBaseFee.md, vectors/src/transaction.vectors.test.ts, test/src/utils.ts, src/types/kzg.ts, src/chains/zksync/types/chain.ts, src/accounts/types.ts, src/chains/celo/serializers.test.ts, site/pages/docs/utilities/toBlobs.md, src/utils/kzg/setupKzg.ts, site/pages/docs/utilities/fromBlobs.md, src/clients/decorators/public.ts, src/actions/public/call.test.ts, src/utils/transaction/getSerializedTransactionType.test.ts, src/chains/celo/types.ts, src/utils/signature/signatureToHex.ts, site/pages/docs/accounts/signTransaction.md, src/chains/opStack/serializers.ts, src/utils/signature/signatureToCompactSignature.test.ts, site/pages/docs/actions/wallet/sendTransaction.md, src/utils/blob/toBlobs.test.ts, site/pages/docs/actions/wallet/signTransaction.md, src/chains/opStack/types/transaction.ts, site/pages/docs/actions/wallet/prepareTransactionRequest.md, src/types/rpc.ts, src/utils/transaction/getTransactionType.test.ts, src/actions/public/getBlobBaseFee.ts, src/chains/zksync/serializers.ts, src/utils/blob/sidecarsToVersionedHashes.test.ts, site/pages/docs/utilities/defineKzg.md, src/chains/zksync/formatters.test.ts, src/actions/wallet/sendTransaction.test.ts, src/actions/wallet/sendRawTransaction.test.ts, src/errors/blob.ts, src/utils/kzg/defineKzg.test.ts, src/utils/transaction/assertTransaction.ts, src/chains/opStack/actions/estimateL1Fee.ts, src/chains/opStack/actions/estimateL1Gas.ts, site/sidebar.ts, src/actions/wallet/signTransaction.test.ts, src/clients/decorators/wallet.ts, src/utils/blob/sidecarsToVersionedHashes.ts, src/utils/blob/commitmentToVersionedHash.ts, src/utils/blob/commitmentsToVersionedHashes.ts, src/utils/blob/blobsToCommitments.ts, site/pages/docs/utilities/sidecarsToVersionedHashes.md, src/types/utils.ts, site/pages/docs/utilities/blobsToCommitments.md, src/index.ts, src/chains/celo/formatters.test.ts, src/utils/blob/fromBlobs.ts, site/pages/docs/utilities/blobsToProofs.md, src/utils/blob/commitmentToVersionedHash.test.ts, site/pages/docs/utilities/commitmentToVersionedHash.md, src/chains/celo/serializers.ts, site/pages/docs/utilities/commitmentsToVersionedHashes.md, vectors/src/transaction.ts, src/actions/public/getTransactionReceipt.test.ts, src/utils/blob/blobsToProofs.test.ts, src/accounts/utils/signTransaction.ts, src/utils/blob/blobsToCommitments.test.ts, src/actions/public/getTransaction.test.ts, src/utils/blob/blobsToProofs.ts, src/utils/transaction/getSerializedTransactionType.ts, src/utils/formatters/transactionRequest.ts, src/utils/blob/toBlobs.ts, src/utils/formatters/transactionRequest.test.ts, src/utils/blob/commitmentsToVersionedHashes.test.ts, src/utils/blob/toBlobSidecars.ts, site/pages/docs/utilities/setupKzg.md, src/actions/wallet/sendTransaction.ts, src/utils/transaction/getTransactionType.test-d.ts, site/pages/docs/guides/blob-transactions.md, src/actions/wallet/signTransaction.ts, src/accounts/utils/signTransaction.test.ts, site/pages/docs/utilities/toBlobSidecars.md, src/utils/transaction/getTransactionType.ts, src/utils/blob/toBlobSidecars.test.ts, src/actions/wallet/prepareTransactionRequest.test.ts, src/types/transaction.ts, src/utils/transaction/parseTransaction.ts, src/utils/transaction/serializeTransaction.test.ts, src/utils/transaction/parseTransaction.test.ts, src/actions/wallet/prepareTransactionRequest.test-d.ts, src/utils/transaction/assertTransaction.test.ts, src/utils/transaction/serializeTransaction.ts, src/actions/wallet/prepareTransactionRequest.ts, test/kzg/verify-kzg-proof.json, test/kzg/lorem-ipsum.txt, src/utils/transaction/__snapshots__/serializeTransaction.test.ts.snap, src/accounts/utils/__snapshots__/signTransaction.test.ts.snap, src/trusted-setups/mainnet.json, src/trusted-setups/minimal.json, test/kzg/invalid-blobs.json, src/actions/wallet/__snapshots__/signTransaction.test.ts.snap, test/kzg/blobs.json, test/kzg/blob-to-kzg-commitment.json, test/kzg/compute-blob-kzg-proof.json, test/kzg/verify-blob-kzg-proof.json, test/kzg/compute-kzg-proof.json, test/kzg/verify-blob-kzg-proof-batch.json

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Jan 25, 2024

🦋 Changeset detected

Latest commit: fc1521b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jan 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
viem ✅ Ready (Inspect) Visit Preview Mar 11, 2024 8:17pm

Copy link

socket-security bot commented Jan 25, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/c-kzg@2.1.2 filesystem +1 3.95 MB g11tech
npm/vocs@1.0.0-alpha.43 environment, filesystem Transitive: eval, network, shell, unsafe +562 371 MB jmoxey

🚮 Removed packages: npm/vocs@1.0.0-alpha.37

View full report↗︎

Copy link

socket-security bot commented Jan 25, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@jxom jxom mentioned this pull request Jan 30, 2024
@jxom jxom changed the title wip: 4844 wip: 4844 - part 2 Jan 30, 2024
@jxom jxom force-pushed the main branch 2 times, most recently from 4670e3b to 9d048cc Compare January 30, 2024 22:46
@jxom jxom merged commit c706328 into main Mar 11, 2024
7 of 10 checks passed
@jxom jxom deleted the jxom/4844 branch March 11, 2024 20:13
@github-actions github-actions bot mentioned this pull request Mar 11, 2024
@tmm tmm mentioned this pull request Mar 30, 2024
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