Skip to content

FFI completion: crypto-integrity (remove Idris stubs + link libochrance.so), blake3Hash ABI, ECHIDNA #39

Description

@hyperpolymath

Relegated from the proof thread. Recorded in .machine_readable/agent_instructions/debt.a2ml.

P1 — Crypto-integrity gate

The verification flow still falls back to Idris-side stubs (hashPairStub / blake3Stub / ed25519VerifyStub in ochrance-core/Ochrance/FFI/Crypto.idr) and libochrance.so is not built + linked into the flow. Until both are done, no cryptographic-integrity claim can be made — the structure proofs hold, but binding does not (CLAUDE.md rule 4). The real crypto already exists in ffi/zig/src/main.zig (BLAKE3 / SHA-256 / SHA3-256 / Ed25519, KAT-tested); wire it in and remove the stubs.

blake3Hash ABI stub

src/abi/Ochrance/ABI/Foreign.idr blake3Hash is covering + returns replicate 32 0 — wire to the real Zig BLAKE3.

ECHIDNA FFI

ochrance-core/Ochrance/FFI/Echidna.idr echidnaProve returns Left "FFI not yet implemented" — implement against libechidna.so.

Ties to proof Stage 1 / D2 (the CollisionResistant binding argument needs the real hash in the flow). See docs/PROOFS.adoc.

https://claude.ai/code/session_011z2t8zAxfcCNLJzU7YdpBQ

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindingsABI, FFI, WASM, and cross-language interop surfacesenhancementNew capability or improvement to existing behaviourpriority:p1High - schedule nextscope:repoConfined to this repositorysecuritystatus:readyFully specified and ready to be picked up

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions