readDerRootOrThrow
readDerRootOrThrow
Reads the single top-level TLV element from bytes.
ts
function readDerRootOrThrow(
bytes: Uint8Array,
options?: ReadRootElementOptions,
): DerElementParameters
bytes:Uint8Arrayoptions?:ReadRootElementOptions
Throws
- if
bytescarries trailing data, or nesting exceeds the depth guard.