kzg changes #2809
Unanswered
HIT2022
asked this question in
Idea / Feature Request
kzg changes
#2809
Replies: 1 comment
-
Will move as a discussion as a feature request to add support for hex i/o intefaces. For now, you could use
You can use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check existing issues
Viem Version
2.21.16
Current Behavior
kzg-wasm
released 0.5.0 with the major changeset coming from this PR: ethereumjs/kzg-wasm#17. You can see how they renamedblobToKzgCommitment
toblobToKZGCommitment
andcomputeBlobKzgProof
tocomputeBlobKzgProof
. Reporting as a bug so thatblobsToProofs
andblobsToCommitments
can be updated to account for both versions of these APIs.On this subject: micro-eth-signer added kzg support so there is now a native JS implementation of KZG cryptography. It seems generation of commitments, in particular, is significantly faster than
kzg-wasm
. Could we refactor kzg use so that viem also supports this library's functions (blobToKzgCommitment
andcomputeBlobKZGProof
)?Unrelated question: could
sendTransaction
handling potentially be adjusted to optionally support passing of pre-computed sidecar data? For UX purposes, if/when multiple blobs are in play, I'd like to be able to execute the cryto well in advance of submitting the tx. to the network.Expected Behavior
Viem's use of kzg will work with
kzg-wasm
release 0.5.0Steps To Reproduce
Use viem with
kzg-wasm
release 0.5.0Link to Minimal Reproducible Example
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions