Function validateRecipientPubkey

  • Reject at the door an X25519 public key HPKE could never seal to (low-order points, including all-zeros). Same rule as sealing for real — a key that passes is sealable; one that fails would register fine and then break EVERY later seal, far from the cause (engines#528).

    Parameters

    • recipientPubkey: Uint8Array

    Returns Promise<boolean>