• Wraps the given payload in a DER encoding tagged with the given encoded oid like so: SEQUENCE(oid, BITSTRING(payload))

    Parameters

    • payload: ArrayBuffer

      The payload to encode as the bit string

    • oid: Uint8Array

      The DER encoded (and SEQUENCE wrapped!) OID to tag the payload with

    Returns Uint8Array