newton-core 0.4.16

newton protocol core sdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Nitro Enclave attestation types for SP1 zkVM circuit and on-chain verification.
//!
//! These types are shared between the SP1 attestation circuit (riscv32 target),
//! the challenger (host-side proof generation), and the on-chain verifier
//! (AttestationProofVerifier.sol). All types must be serde-compatible and
//! ABI-encodable for cross-boundary use.

pub mod context;
pub mod nitro;
pub mod sentinel;

pub use context::AttestationContext;
pub use nitro::{AttestationDocument, CoseSign1};
pub use sentinel::{
    build_loopback_attestation, is_loopback_attestation, loopback_pcr0_hash, parse_loopback_nonce, parse_loopback_pcr0,
    LOOPBACK_MAGIC, LOOPBACK_PCR0,
};