Skip to content

Sig handling version bump - #115

Merged
buffrr merged 5 commits into
mainfrom
sig-handling-version-bump
Aug 14, 2026
Merged

Sig handling version bump#115
buffrr merged 5 commits into
mainfrom
sig-handling-version-bump

Conversation

@buffrr

@buffrr buffrr commented Aug 14, 2026

Copy link
Copy Markdown
Member

No description provided.

buffrr added 5 commits August 12, 2026 14:51
Updates the host verifier to spacedb 0.1.4 (verifier-side hardening and a
path.rs panic fix; no change to the merkle hashing or root computation).

The workspace requirement stays "0.1", so only the workspace Cargo.lock
moves. The ZK guest keeps its own pinned lock (methods/guest/Cargo.lock at
0.1.2) and veritas verifies against the committed ELFs + hardcoded image
IDs, so the guest ELF and image IDs are unchanged.
Record sets whose embedded signature does not verify are now silently
dropped from the verified Zone rather than failing the whole message. This
is permissive toward e.g. records left behind by a rotated key, while
preserving the invariant that everything in Zone::records is authentically
owner-signed. Applies to owner, delegate, temporary-handle, and
final-handle record sets.

The omission is surfaced through inspect (not by injecting a synthetic
record, which would break the signed-only invariant and be spoofable):
record_summary now re-runs verify_records against the same signer key the
verifier resolves and reports the result as SigStatus::{Valid,Invalid,
Unchecked} on RecordSummary.
The generated JS error only put the `{msg}` detail in `.inner.msg`; its
`.message` (and thus `toString()`/`${e}`) was just
"VeritasError.VerificationFailed", so consumers logging `${e}` lost the
detail.

Marking the error `#[uniffi(flat_error)]` lowers the Display string over
the FFI, which ubrn's flat-error template feeds into the error's
`.message`. Variant discrimination via `.tag` is preserved; the detail
now travels in `.message` instead of `.inner.msg`.
@buffrr
buffrr merged commit eb3cea2 into main Aug 14, 2026
5 checks passed
@buffrr
buffrr deleted the sig-handling-version-bump branch August 14, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant