Signature.fromTuple
Converts a Signature.Tuple
to a Signature.Signature
.
Imports
Named
import { Signature } from 'ox'
Examples
import { Signature } from 'ox'
const signature = Signature.fromTuple(['0x01', '0x7b', '0x1c8'])
{ r: 123n, s: 456n, yParity: 1, }
Definition
function fromTuple(
tuple: Tuple,
): Signature
Source: src/core/Signature.ts
Parameters
tuple
- Type:
Tuple
The Signature.Tuple
to convert.
Return Type
The Signature.Signature
.
Signature