Function hpkeWrapDk

  • Wrap the DK for one recipient: HPKE single-shot seal (Base mode) with the domain-separation info and the envelope AAD. Mirrors the wrap step of seal_field in sealed_field.rs.

    Parameters

    • recipientPubkey: Uint8Array
    • dk: Uint8Array
    • aad: Uint8Array

    Returns Promise<{ enc: Uint8Array; wrappedDk: Uint8Array }>