Skip to content
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

cre8-app-device · module reading · src · 282 lines (178 code, 74 comment) · sha 9fa7af6c3a524585

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
chain_extendsrc/reading.rs:171fn31612.7
sign_reading_with_seedsrc/reading.rs:137fn61832.1
SensorReading::newsrc/reading.rs:48method171402
readingsrc/reading.rs:179fn31621.8
SensorReading::with_unitsrc/reading.rs:66method41101.3
default_device_seedsrc/reading.rs:147fn31201.2
canonical_linesrc/reading.rs:87fn121200.9
SensorReading::with_noncesrc/reading.rs:71method41000.5
SensorReading::digestsrc/reading.rs:78method31020.5
SensorReading::canonical_bytes_for_signingsrc/reading.rs:101trait impl31020.5
SignedReading::verifysrc/reading.rs:122method31010.5
SignedReading::digestsrc/reading.rs:127method31000.5
sign_then_verify_round_tripssrc/reading.rs:184fn81030.5
tampering_with_the_value_breaks_verificationsrc/reading.rs:194fn61020.5
tampering_with_any_bound_field_breaks_verificationsrc/reading.rs:202fn132020.5
a_different_key_does_not_verifysrc/reading.rs:217fn61030.5
signed_reading_survives_json_round_trip_and_still_verifiessrc/reading.rs:225fn91020.5
digest_is_stable_and_binds_the_valuesrc/reading.rs:236fn81010.5
integer_valued_readings_round_tripsrc/reading.rs:246fn61020.5
default_device_seed_is_per_device_stablesrc/reading.rs:254fn41010.5
chain_extend_is_deterministic_hexsrc/reading.rs:260fn51010.5
chain_extend_is_order_sensitivesrc/reading.rs:267fn71010.5
chain_extend_detects_a_swapped_digestsrc/reading.rs:276fn61010.5

Source not readable from this process.