Skip to content

readDerRootOrThrow ​

readDerRootOrThrow ​

Reads the single top-level TLV element from bytes.

ts
function readDerRootOrThrow(
	bytes: Uint8Array,
	options?: ReadRootElementOptions,
): DerElement

Parameters

Throws

  • if bytes carries trailing data, or nesting exceeds the depth guard.

Released under the MIT License.