Expand description
Offline verification library for the Spaces protocol.
libveritas verifies space handle ownership and zone records against on-chain
anchors using ZK receipts and Merkle proofs. It is the verifier counterpart to
the Spaces fabric / relay infrastructure.
§Quick start
ⓘ
use libveritas::{Veritas, msg::QueryContext};
let veritas = Veritas::new().with_anchors(anchors)?;
let result = veritas.verify(&QueryContext::new(), message)?;
for zone in &result.zones {
// ...
}§Features
elf— embed the prover ELF binaries (FOLD_ELF,STEP_ELF) alongside the image IDs. Verifiers only need the image IDs and can skip this feature.
Re-exports§
pub use sip7;pub use spaces_protocol;
Modules§
Structs§
- Certificate
Iter - Iterator over certificates from a verified message.
- Commitment
Info - Information about a space’s commitment state.
- Delegate
- Trust
Set - A compact representation of a set of trusted anchors.
- Verified
Message - Result of verifying a message.
- Veritas
- Zone
- A verified zone representing ownership and state for a space handle.
Enums§
- Anchor
Error - Error when loading or updating anchors.
- Message
Error - Error during message verification.
- Provable
Option - Signature
Error - Sovereignty
State - Zone
Compare Error
Constants§
- VERIFY_
DEFAULT - Verification option flags (combine with bitwise OR).
- VERIFY_
DEV_ MODE - VERIFY_
ENABLE_ SNARK
Functions§
- compute_
root_ id - Compute a deterministic id for a single root anchor.
- compute_
trust_ set - Compute a trust set from anchors.
- hash_
signable_ message - verify_
schnorr - Verify a raw Schnorr signature (no prefix, caller provides the 32-byte message hash).
- verify_
spaces_ message - Verify a Schnorr signature over a message using the Spaces signed-message prefix.