Skip to content

proof(libcrux): replace generated stubs with extracted models#176

Merged
cfm merged 4 commits intomainfrom
extract-models
Mar 8, 2026
Merged

proof(libcrux): replace generated stubs with extracted models#176
cfm merged 4 commits intomainfrom
extract-models

Conversation

@cfm
Copy link
Member

@cfm cfm commented Mar 8, 2026

In #167 I had Claude generate F* stubs for dependencies of the securedrop_protocol_minimal::primitives::*::typed() targets. Here we:

  1. replace stubs for libcrux crates with models extracted from their source code; and
  2. explain why the Claude-generated stubs remain sufficient for anyhow, which doesn't extract cleanly, will require additions to hax's core models, and as a runtime error-handling library seems fine to stub for now rather than model properly.

I expect (1)'s generated files to go away in #171, since they can be re-extracted reproducibly, leaving only (2).

Thanks to @maximebuyse and @clementblaudeau for assistance during the High-Assurance Cryptography Software Workshop.

@cfm cfm requested a review from redshiftzero March 8, 2026 08:52
@cfm cfm requested a review from a team as a code owner March 8, 2026 08:52
@cfm cfm added this to SecureDrop Mar 8, 2026
@cfm cfm requested a review from a team as a code owner March 8, 2026 08:52
@cfm cfm moved this to Ready For Review in SecureDrop Mar 8, 2026
@cfm cfm mentioned this pull request Mar 8, 2026
2 tasks
Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cfm cfm added this pull request to the merge queue Mar 8, 2026
@cfm cfm moved this from Ready For Review to Under Review in SecureDrop Mar 8, 2026
Merged via the queue into main with commit edd686c Mar 8, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this from Under Review to Done in SecureDrop Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants