Skip to content

Commit e308102

Browse files
authored
Integrate new kzg-wasm library version / Sanity & API Checks (#4153)
* Add new kzg-wasm RC version 1.0.0-rc.1 to package.json * Rebuild package-lock.json * Update KZG API tests * Add kzg-wasm to tx dev dependencies * Rebuild package-lock.json * -> rc.2 * package-lock.json * Update to rc.2 * Increase timeout, remove wrapper * Start integration in tx tests * package-lock.json * Integrate kzg-wasm into tx EIP-4844 tests * Add kzg JS/WASM labels to tests * Add code docs for kzg utils (AI, proof-read) * Make blob tx example a bit more meaningful * Fix spellcheck
1 parent 5b6d90d commit e308102

File tree

9 files changed

+1031
-913
lines changed

9 files changed

+1031
-913
lines changed

config/cspell-ts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@
639639
"hoodi",
640640
"peerdas",
641641
"getpayload",
642-
"ckzg"
642+
"ckzg",
643+
"Damgård"
643644
]
644645
}

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tx/examples/blobTx.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ const main = async () => {
3333

3434
const tx = createBlob4844Tx(txData, { common })
3535

36-
console.log(bytesToHex(tx.hash())) //0x3c3e7c5e09c250d2200bcc3530f4a9088d7e3fb4ea3f4fccfd09f535a3539e84
36+
console.log(`Blob tx created with hash: ${bytesToHex(tx.hash())}`)
37+
console.log(`Tx contains ${tx.numBlobs()} blob`)
38+
console.log(`Blob versioned hashes: ${tx.blobVersionedHashes.join(', ')}`)
3739

3840
// To send a transaction via RPC, you can something like this:
3941
// const rawTx = tx.sign(privateKeyBytes).serializeNetworkWrapper()

packages/tx/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"@paulmillr/trusted-setups": "^0.2.0",
7272
"@types/minimist": "^1.2.5",
7373
"@types/node-dir": "^0.0.37",
74+
"kzg-wasm": "1.0.0-rc.2",
7475
"micro-eth-signer": "^0.15.0",
7576
"minimist": "^1.2.8",
7677
"node-dir": "^0.1.17",

0 commit comments

Comments
 (0)