ethereumjs-monorepo

@ethereumjs/evm


@ethereumjs/evm / NobleBLS

Class: NobleBLS

Defined in: precompiles/bls12_381/noble.ts:158

Implementation of the EVMBLSInterface 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 NobleBLS(): NobleBLS

Returns

NobleBLS

Methods

addG1()

addG1(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:159

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.addG1


addG2()

addG2(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:172

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.addG2


mapFP2toG2()

mapFP2toG2(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:194

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.mapFP2toG2


mapFPtoG1()

mapFPtoG1(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:184

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.mapFPtoG1


msmG1()

msmG1(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:204

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.msmG1


msmG2()

msmG2(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:236

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.msmG2


pairingCheck()

pairingCheck(input): Uint8Array

Defined in: precompiles/bls12_381/noble.ts:268

Parameters

input

Uint8Array

Returns

Uint8Array

Implementation of

EVMBLSInterface.pairingCheck