Signature.fromHex
Deserializes a Hex.Hex
signature into a structured Signature.Signature
.
Imports
Named
import { Signature } from 'ox'
Examples
import { Signature } from 'ox'
Signature.fromHex('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c')
{ r: 5231...n, s: 3522...n, yParity: 0 }
Definition
function fromHex(
signature: Hex.Hex,
): Signature
Source: src/Signature.ts
Parameters
signature
- Type:
Hex.Hex
Return Type
The deserialized Signature.Signature
.
Signature