@ethereumjs/common / CustomCrypto
• Optional
ecdsaRecover: (sig
: Uint8Array
, recId
: number
, hash
: Uint8Array
) => Uint8Array
▸ (sig
, recId
, hash
): Uint8Array
Name | Type |
---|---|
sig |
Uint8Array |
recId |
number |
hash |
Uint8Array |
Uint8Array
• Optional
ecdsaSign: (msg
: Uint8Array
, pk
: Uint8Array
) => { recid
: number
; signature
: Uint8Array
}
▸ (msg
, pk
): Object
Name | Type |
---|---|
msg |
Uint8Array |
pk |
Uint8Array |
Object
Name | Type |
---|---|
recid |
number |
signature |
Uint8Array |
• Optional
ecrecover: (msgHash
: Uint8Array
, v
: bigint
, r
: Uint8Array
, s
: Uint8Array
, chainId?
: bigint
) => Uint8Array
▸ (msgHash
, v
, r
, s
, chainId?
): Uint8Array
Name | Type |
---|---|
msgHash |
Uint8Array |
v |
bigint |
r |
Uint8Array |
s |
Uint8Array |
chainId? |
bigint |
Uint8Array
• Optional
ecsign: (msg
: Uint8Array
, pk
: Uint8Array
, chainId?
: bigint
) => ECDSASignature
▸ (msg
, pk
, chainId?
): ECDSASignature
Name | Type |
---|---|
msg |
Uint8Array |
pk |
Uint8Array |
chainId? |
bigint |
ECDSASignature
• Optional
keccak256: (msg
: Uint8Array
) => Uint8Array
▸ (msg
): Uint8Array
Interface for providing custom cryptographic primitives in place of ethereum-cryptography
variants
Name | Type |
---|---|
msg |
Uint8Array |
Uint8Array
• Optional
kzg: Kzg
• Optional
sha256: (msg
: Uint8Array
) => Uint8Array
▸ (msg
): Uint8Array
Name | Type |
---|---|
msg |
Uint8Array |
Uint8Array