Skip to main content

Crate newton_prover_core

Crate newton_prover_core 

Source
Expand description

This crate provides the functionality for the NEWTON Prover.

This includes:

  • Rego policy types and evaluation (always available, zkVM-compatible)
  • Auto-generated Solidity contract bindings (only on non-RISC-V targets)
  • Core AVS functionality (entity, IO, keys, utils, ZK)

Re-exports§

pub use rego::evaluate;

Modules§

attestation_validator
bn254_certificate_verifier
bn254_table_calculator
challenge_verifier
common
Utils module (requires rpc for full functionality, not available in zkVM)
config
Config module (requires config feature, not available in zkVM) config
crypto
Privacy-preserving cryptography module (HPKE, Ed25519, SecureEnvelope) Privacy-preserving cryptography for Newton Prover AVS.
ecdsa_operator_table_updater
eip712_upgradeable
error
Error types module
identity_registry
io
IO module for chain operations and serialization
ipfs
IPFS caching module (requires ipfs-cache feature) IPFS content caching with two-tier architecture.
keys
Key management module (requires signing feature for full functionality, not available in zkVM) Key management utilities for Newton Prover AVS
merkle
Merkle tree module for ELIP-008 operator info verification Merkle tree computation for ELIP-008 operator info verification.
mock_newton_policy_client
newton_cross_chain_registry
newton_message
newton_policy
newton_policy_client
newton_policy_data
newton_policy_data_factory
newton_policy_factory
newton_prover_dest_task_manager
newton_prover_service_manager
newton_prover_task_manager
operator_registry
operator_table_updater
policy_client_registry
rego
Rego policy evaluation module (zkVM-compatible) Rego types and evaluation for zkVM circuits
rego_verifier
version
Version compatibility module Protocol version compatibility module
zk
ZK module (requires proving feature, not available in zkVM)

Macros§

env_option
macro that sets option field from environment variable
env_string
macro that sets field from environment variable
hex
Macro to hex-encode byte arrays, slices, or fixed-size byte arrays (like B256).
merge_address
macro for merging address fields - only merge if other field is non-zero address
merge_bool
macro for merging boolean fields - basically an OR
merge_numeric
macro for merging numeric fields - only merge if other field is non-zero
merge_option
macro for merging option fields - only merge if other field is Some
merge_string
macro for merging string fields - only merge if other field is non-empty

Structs§

BN254Certificate

Type Aliases§

PolicyId
Policy ID
TaskId
Task ID