Skip to content

Replace panic in HpkeError secp256k1 conversion with safe error handling #1274

@chavic

Description

@chavic

Converting Hpke errors can panic if new secp256k1::Error variants appear.

Todo:

  • Add a safe catch‑all in the conversion layer.
  • Ensure unknown variants map to a stable “Other/Unknown” error.
  • Add a test to verify no panic on unexpected error values.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions