Skip to content

Signature.yParityToV

Converts a ECDSA v value to a yParity value.

Imports

Named
import { Signature } from 'ox'

Examples

import { Signature } from 'ox'
 
const v = Signature.yParityToV(1)
28

Definition

function yParityToV(
  yParity: number,
): number

Source: src/Signature.ts

Parameters

yParity

  • Type: number

The ECDSA yParity value to convert.

Return Type

The v value.

number

Error Type

Signature.yParityToV.ErrorType