{"repo":"ethereumjs/kzg-wasm","free":true,"listed":false,"github":"https://github.com/ethereumjs/kzg-wasm","clone":"git clone https://github.com/ethereumjs/kzg-wasm.git","description":"KZG WASM Build suitable for EIP-4844 and PeerDAS (EIP-7594)","language":"TypeScript","stars":17,"topics":["browser","eip-4844","kzg","peerdas","wasm","eip-7594","ethereum"],"license":null,"category":"blockchain-web3","readme_excerpt":"KZG-WASM WASM wrapper library for KZG/EIP-4844/PeerDAS functionality. ------------------------------------------------------------ Table of Contents - Introduction - Usage - API Reference - Performance Comparison - Development - License Introduction This module implements a JS wrapper around a WASM compilation of the c-kzg-4844 C library built for use with EIP-4844. Starting with v1.0.0, the library also support cell-based operations in the context of EIP-7594 (PeerDAS). This library is produced by building the original C code to WASM using the empscripten toolchain in this fork of c-kzg-4844 . If you are looking for a pure JS implementation of KZG/EIP-4844/PeerDAS functionality, check out the micro-eth-signer library. For a comparison on how these libraries roughly compare in terms of performance, see the Performance Comparison section. Usage This module exposes a single export, an async function called loadKZG which loads and compiles the WASM object, loads a trusted setup (defaults to the official setup from the KZG ceremony) and returns an object that exposes the API defined in the KZG type interface in @ethereumjs/util To use with the @ethereumjs libraries, do the following: API Reference The loadKZG() function returns an object that implements the KZG interface with the following methods: Core KZG Operations (EIP-4844) loadTrustedSetup(trustedSetup?, precompute?) Loads a trusted setup for KZG operations. Returns 0 on success, non-zero on failure. freeTrustedSetup() Free","default_branch":null,"files":null,"tree":[],"storefront":"/r/ethereumjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ethereumjs/kzg-wasm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}