Signature.toLegacy
Converts a Signature.Signature into a Signature.Legacy.
Imports
Named
import { Signature } from 'ox'Examples
import { Signature } from 'ox'
 
const legacy = Signature.toLegacy({ r: 1n, s: 2n, yParity: 1 })
{ r: 1n, s: 2n, v: 28 }Definition
function toLegacy(
  signature: Signature,
): LegacySource: src/core/Signature.ts
Parameters
signature
- Type: 
Signature 
The Signature.Signature to convert.
signature.r
- Type: 
bigintType 
signature.s
- Type: 
bigintType 
signature.yParity
- Type: 
numberType - Optional
 
Return Type
The converted Signature.Legacy.

