Signature.fromBytes
Deserializes a Bytes.Bytes
signature into a structured Signature.Signature
.
Imports
Named
import { Signature } from 'ox'
Examples
import { Signature } from 'ox'
Signature.fromBytes(new Uint8Array([128, 3, 131, ...]))
{ r: 5231...n, s: 3522...n, yParity: 0 }
Definition
function fromBytes(
signature: Bytes.Bytes,
): Signature
Source: src/core/Signature.ts
Parameters
signature
- Type:
Bytes.Bytes
The serialized signature.
Return Type
The deserialized Signature.Signature
.
Signature