@ethereumjs/evm / RustBN254
Defined in: precompiles/bn254/rustbn.ts:12
Implementation of the EVMBN254Interface
using a WASM wrapper https://github.com/ethereumjs/rustbn.js
around the Parity fork of the Zcash bn pairing cryptography library.
This can be optionally used to replace the build-in Noble implementation (NobleBN254
) with
a more performant WASM variant. See EVM bls
constructor option on how to use.
new RustBN254(
rustbn
):RustBN254
Defined in: precompiles/bn254/rustbn.ts:15
any
RustBN254
add(
input
):Uint8Array
Defined in: precompiles/bn254/rustbn.ts:19
Uint8Array
Uint8Array
EVMBN254Interface.add
mul(
input
):Uint8Array
Defined in: precompiles/bn254/rustbn.ts:24
Uint8Array
Uint8Array
EVMBN254Interface.mul
pairing(
input
):Uint8Array
Defined in: precompiles/bn254/rustbn.ts:28
Uint8Array
Uint8Array
EVMBN254Interface.pairing