asn1-ts
Version:
ASN.1 encoding and decoding, including BER, CER, and DER.
17 lines (16 loc) • 675 B
text/typescript
import { Buffer } from "node:buffer";
export default class ObjectIdentifier {
protected encoding: Uint8Array;
static fromParts(nodes: number[], prefix?: ObjectIdentifier | number): ObjectIdentifier;
get nodes(): number[];
get dotDelimitedNotation(): string;
get asn1Notation(): string;
toString(): string;
toJSON(): string;
toBytes(): Buffer;
static fromString(str: string): ObjectIdentifier;
static fromBytes(bytes: Uint8Array): ObjectIdentifier;
static fromBytesUnsafe(bytes: Uint8Array): ObjectIdentifier;
static compare(a: ObjectIdentifier, b: ObjectIdentifier): boolean;
isEqualTo(other: ObjectIdentifier): boolean;
}