Skip to content
1 viewer

rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off

cre8-app-inference-proof-api inference cargo crate

Contract surface for proof-carrying AI inference: the proven-vs-witnessed attestation model and the ProvableInference trait.

crates/cre8-app-inference-proof-api · level 5 · 1,441 lines (947 code) · 2 files · 60 fns (28 tests) · cyclomatic Σ 129

2workspace deps
4direct dependents
79transitive dependents
26calls out
58calls in
60.3call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

Files

lowhigh

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 60 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
model_basis_root_hexsrc/weight_basis.rs:65fn821644.9
ProvenAttestation::is_succinctsrc/lib.rs:234method312003.7
hash_requestsrc/lib.rs:335fn61923.2
hash_responsesrc/lib.rs:346fn31612.4
decode_sha256_hexsrc/weight_basis.rs:33fn196301.9
model_basis_leafsrc/weight_basis.rs:54fn71311.9
canonical_jsonsrc/lib.rs:528fn183101.8
custody_answer_hexsrc/weight_basis.rs:309fn81321.6
InputBinding::for_requestsrc/lib.rs:138method31611.6
sample_requestsrc/lib.rs:552fn101901.4
sample_responsesrc/lib.rs:563fn101801.4
abc_hashessrc/weight_basis.rs:421fn31511.3
ProvenAttestation::check_proof_digestsrc/lib.rs:264method112421.3
verify_model_basis_rootsrc/weight_basis.rs:76fn82411.3
witness_responsesrc/lib.rs:365fn161521.2
verify_custody_proofsrc/weight_basis.rs:383fn325351.2
witness_preimagesrc/lib.rs:353fn31201.2
verify_attestationsrc/lib.rs:407fn298741.1
slice_weights_from_chunkssrc/weight_basis.rs:105fn528431
InferenceAttestation::output_hashsrc/lib.rs:90method62201
verify_model_basis_inclusionsrc/weight_basis.rs:253fn258441
model_basis_inclusion_proofsrc/weight_basis.rs:202fn478450.9
verify_custody_answersrc/weight_basis.rs:319fn82210.9
verify_output_bindingsrc/lib.rs:446fn134320.9
InputBinding::request_hashsrc/lib.rs:144method62400.9
basis_innersrc/weight_basis.rs:171fn71210.9
decode_hexsrc/weight_basis.rs:292fn155200.8
ProvenAttestation::is_remotely_verifiablesrc/lib.rs:247method33200.8
answer_custody_challengesrc/weight_basis.rs:359fn203450.8
proven_oversrc/lib.rs:710fn171310.7
hashes_forsrc/weight_basis.rs:507fn31210.7
InferenceAttestation::assurancesrc/lib.rs:73method62200.7
InferenceAttestation::is_provensrc/lib.rs:83method31200.7
InputBinding::is_request_boundsrc/lib.rs:154method31100.6
InputBinding::digestsrc/lib.rs:160method51000.5
ProvableInference::max_assurancesrc/lib.rs:325trait default31000.5
AttestationError::fmtsrc/lib.rs:503trait impl209000.5
assurance_discriminates_proven_from_witnessedsrc/lib.rs:575fn392040.5
request_hash_is_order_independent_and_stablesrc/lib.rs:616fn101020.5
response_hash_binds_content_onlysrc/lib.rs:628fn81020.5

Outside the workspace

anyhow serde serde_json