BoundedAuthorityReportAdapter.TestHandles (Bounded Authority Report Adapter v0.5.0)

Copy Markdown View Source

Test-only key-handle modules for the sign_report (RA1) + sign_anchor (RA4) suites.

These live in test/support/ (compiled in :test via mix.exs elixirc_paths) so they are always loaded when the tests run — defining them at the bottom of the _test.exs file left them unloaded at test time in some mix test orderings (function_exported? returned false even though the module compiled), which made the WrongKeyHandle test flake.

The RA1 handles (CountingKeyHandle, CapturingKeyHandle, etc.) implement only the proof-required callbacks. The RA4 anchor handles additionally implement key_identity/1 (the optional callback sign_anchor/3 resolves into the signed anchor header).