Skip to content

Signature.fromDerBytes

Converts a DER-encoded signature to a Signature.Signature.

Imports

Named
import { Signature } from 'ox'

Examples

import { Signature } from 'ox'
 
const signature = Signature.fromDerBytes(new Uint8Array([132, 51, 23, ...]))
{
r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,
s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,
}

Definition

function fromDerBytes(
  signature: Bytes.Bytes,
): Signature<false>

Source: src/Signature.ts

Parameters

signature

  • Type: Bytes.Bytes

The DER-encoded signature to convert.

Return Type

The Signature.Signature.

Signature<false>