Skip to content

Preserve OHTTP/HPKE error granularity in FFI bindings #1273

@chavic

Description

@chavic

OHTTP/HPKE errors are flattened into generic errors. Clients can’t distinguish “invalid key length” from network/encapsulation failures.

Todo:

  • Export granular error enums for OHTTP/HPKE into FFI.
  • Preserve parse/decode vs transport vs crypto errors.
  • Add negative tests in each binding to assert variant specificity.
  • Keep backwards compatibility by preserving generic error as a top‑level wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions