ethereumjs-monorepo

@ethereumjs/common / CustomCrypto

Interface: CustomCrypto

Table of contents

Properties

Properties

ecdsaRecover

Optional ecdsaRecover: (sig: Uint8Array, recId: number, hash: Uint8Array) => Uint8Array

Type declaration

▸ (sig, recId, hash): Uint8Array

Parameters
Name Type
sig Uint8Array
recId number
hash Uint8Array
Returns

Uint8Array

Defined in

types.ts:86


ecdsaSign

Optional ecdsaSign: (msg: Uint8Array, pk: Uint8Array) => { recid: number ; signature: Uint8Array }

Type declaration

▸ (msg, pk): Object

Parameters
Name Type
msg Uint8Array
pk Uint8Array
Returns

Object

Name Type
recid number
signature Uint8Array

Defined in

types.ts:85


ecrecover

Optional ecrecover: (msgHash: Uint8Array, v: bigint, r: Uint8Array, s: Uint8Array, chainId?: bigint) => Uint8Array

Type declaration

▸ (msgHash, v, r, s, chainId?): Uint8Array

Parameters
Name Type
msgHash Uint8Array
v bigint
r Uint8Array
s Uint8Array
chainId? bigint
Returns

Uint8Array

Defined in

types.ts:76


ecsign

Optional ecsign: (msg: Uint8Array, pk: Uint8Array, chainId?: bigint) => ECDSASignature

Type declaration

▸ (msg, pk, chainId?): ECDSASignature

Parameters
Name Type
msg Uint8Array
pk Uint8Array
chainId? bigint
Returns

ECDSASignature

Defined in

types.ts:84


keccak256

Optional keccak256: (msg: Uint8Array) => Uint8Array

Type declaration

▸ (msg): Uint8Array

Interface for providing custom cryptographic primitives in place of ethereum-cryptography variants

Parameters
Name Type
msg Uint8Array
Returns

Uint8Array

Defined in

types.ts:75


kzg

Optional kzg: Kzg

Defined in

types.ts:87


sha256

Optional sha256: (msg: Uint8Array) => Uint8Array

Type declaration

▸ (msg): Uint8Array

Parameters
Name Type
msg Uint8Array
Returns

Uint8Array

Defined in

types.ts:83