1 viewer
rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off
crates/cre8-app-device/src/reading.rs
Items
struct SensorReading impl SensorReading impl CanonicalBytes for SensorReading struct SignedReading impl SignedReading const CHAIN_GENESIS const READINGS_WINDOW
Functions
By call-graph weight (PageRank; 1.0 is the average function). 23 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| chain_extendsrc/reading.rs:171 | fn | 3 | 1 | 6 | 1 | 2.7 | |
| sign_reading_with_seedsrc/reading.rs:137 | fn | 6 | 1 | 8 | 3 | 2.1 | |
| SensorReading::newsrc/reading.rs:48 | method | 17 | 1 | 4 | 0 | 2 | |
| readingsrc/reading.rs:179 | fn | 3 | 1 | 6 | 2 | 1.8 | |
| SensorReading::with_unitsrc/reading.rs:66 | method | 4 | 1 | 1 | 0 | 1.3 | |
| default_device_seedsrc/reading.rs:147 | fn | 3 | 1 | 2 | 0 | 1.2 | |
| canonical_linesrc/reading.rs:87 | fn | 12 | 1 | 2 | 0 | 0.9 | |
| SensorReading::with_noncesrc/reading.rs:71 | method | 4 | 1 | 0 | 0 | 0.5 | |
| SensorReading::digestsrc/reading.rs:78 | method | 3 | 1 | 0 | 2 | 0.5 | |
| SensorReading::canonical_bytes_for_signingsrc/reading.rs:101 | trait impl | 3 | 1 | 0 | 2 | 0.5 | |
| SignedReading::verifysrc/reading.rs:122 | method | 3 | 1 | 0 | 1 | 0.5 | |
| SignedReading::digestsrc/reading.rs:127 | method | 3 | 1 | 0 | 0 | 0.5 | |
| sign_then_verify_round_tripssrc/reading.rs:184 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| tampering_with_the_value_breaks_verificationsrc/reading.rs:194 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| tampering_with_any_bound_field_breaks_verificationsrc/reading.rs:202 | fn | 13 | 2 | 0 | 2 | 0.5 | |
| a_different_key_does_not_verifysrc/reading.rs:217 | fn | 6 | 1 | 0 | 3 | 0.5 | |
| signed_reading_survives_json_round_trip_and_still_verifiessrc/reading.rs:225 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| digest_is_stable_and_binds_the_valuesrc/reading.rs:236 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| integer_valued_readings_round_tripsrc/reading.rs:246 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| default_device_seed_is_per_device_stablesrc/reading.rs:254 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| chain_extend_is_deterministic_hexsrc/reading.rs:260 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| chain_extend_is_order_sensitivesrc/reading.rs:267 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| chain_extend_detects_a_swapped_digestsrc/reading.rs:276 | fn | 6 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.