ethereumjs-monorepo

@ethereumjs/evm


@ethereumjs/evm / NobleBN254

Class: NobleBN254

Defined in: precompiles/bn254/noble.ts:122

Implementation of the EVMBN254Interface using the ethereum-cryptography (@noble/curves`) JS library, see https://github.com/ethereum/js-ethereum-cryptography.

This is the EVM default implementation.

Implements

Constructors

Constructor

new NobleBN254(): NobleBN254

Returns

NobleBN254

Methods

add()

add(input): Uint8Array

Defined in: precompiles/bn254/noble.ts:123

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBN254Interface.add


mul()

mul(input): Uint8Array

Defined in: precompiles/bn254/noble.ts:131

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBN254Interface.mul


pairing()

pairing(input): Uint8Array

Defined in: precompiles/bn254/noble.ts:142

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBN254Interface.pairing