Class: OID

type/oid~OID()

new OID()

Source:

Methods

getName() → {string}

If a known curve object identifier, return the canonical name of the curve

Source:
Returns:

String with the canonical name of the curve

Type
string

read(input) → {Number}

Method to read an OID object

Parameters:
Name Type Description
input Uint8Array

Where to read the OID from

Source:
Returns:

Number of read bytes

Type
Number

toHex() → {string}

Serialize an OID object as a hex string

Source:
Returns:

String with the hex value of the OID

Type
string

write() → {Uint8Array}

Serialize an OID object

Source:
Returns:

Array with the serialized value the OID

Type
Uint8Array