1 viewer
rust 1,859,968 · typescript 235,218 · javascript 132,952 · python 20,426 · 6,406 files · digest c536f05fc420 · built in 1.4 s · crystals off
crates/cre8-app-inference-proof-api/src/weight_basis.rs
Items
const MODEL_BASIS_SCHEMA_V1 const LEAF_DOMAIN const INNER_DOMAIN const EMPTY_DOMAIN struct WeightSliceRef struct BasisPathNode struct BasisInclusionProof const CUSTODY_DOMAIN struct CustodyChallenge struct CustodyProof enum CustodyVerdict
Functions
By call-graph weight (PageRank; 1.0 is the average function). 25 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| model_basis_root_hexsrc/weight_basis.rs:65 | fn | 8 | 2 | 16 | 4 | 4.9 | |
| decode_sha256_hexsrc/weight_basis.rs:33 | fn | 19 | 6 | 3 | 0 | 1.9 | |
| model_basis_leafsrc/weight_basis.rs:54 | fn | 7 | 1 | 3 | 1 | 1.9 | |
| custody_answer_hexsrc/weight_basis.rs:309 | fn | 8 | 1 | 3 | 2 | 1.6 | |
| abc_hashessrc/weight_basis.rs:421 | fn | 3 | 1 | 5 | 1 | 1.3 | |
| verify_model_basis_rootsrc/weight_basis.rs:76 | fn | 8 | 2 | 4 | 1 | 1.2 | |
| verify_custody_proofsrc/weight_basis.rs:383 | fn | 32 | 5 | 3 | 5 | 1.2 | |
| slice_weights_from_chunkssrc/weight_basis.rs:105 | fn | 52 | 8 | 4 | 3 | 1 | |
| verify_model_basis_inclusionsrc/weight_basis.rs:253 | fn | 25 | 8 | 4 | 4 | 1 | |
| model_basis_inclusion_proofsrc/weight_basis.rs:202 | fn | 47 | 8 | 4 | 5 | 0.9 | |
| verify_custody_answersrc/weight_basis.rs:319 | fn | 8 | 2 | 2 | 1 | 0.9 | |
| basis_innersrc/weight_basis.rs:171 | fn | 7 | 1 | 2 | 1 | 0.9 | |
| decode_hexsrc/weight_basis.rs:292 | fn | 15 | 5 | 2 | 0 | 0.8 | |
| answer_custody_challengesrc/weight_basis.rs:359 | fn | 20 | 3 | 4 | 5 | 0.8 | |
| hashes_forsrc/weight_basis.rs:507 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| basis_root_convention_is_frozensrc/weight_basis.rs:429 | fn | 14 | 1 | 0 | 2 | 0.5 | |
| tampered_chunk_moves_the_rootsrc/weight_basis.rs:445 | fn | 8 | 1 | 0 | 4 | 0.5 | |
| reordered_chunks_are_a_different_modelsrc/weight_basis.rs:455 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| malformed_chunk_hash_is_refusedsrc/weight_basis.rs:463 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| slice_cuts_across_chunk_boundaries_after_verifying_custodysrc/weight_basis.rs:471 | fn | 19 | 1 | 0 | 3 | 0.5 | |
| slice_refuses_a_served_chunk_that_does_not_match_its_hashsrc/weight_basis.rs:492 | fn | 14 | 1 | 0 | 3 | 0.5 | |
| inclusion_paths_fold_to_the_frozen_root_for_every_positionsrc/weight_basis.rs:515 | fn | 18 | 3 | 0 | 5 | 0.5 | |
| inclusion_refuses_a_moved_chunk_a_swapped_hash_and_a_bent_pathsrc/weight_basis.rs:535 | fn | 28 | 1 | 0 | 3 | 0.5 | |
| custody_answer_binds_the_nonce_and_the_bytessrc/weight_basis.rs:565 | fn | 11 | 1 | 0 | 2 | 0.5 | |
| custody_proof_reaches_membership_without_the_chunk_and_answer_with_itsrc/weight_basis.rs:578 | fn | 35 | 1 | 0 | 4 | 0.5 |
Source not readable from this process.