1 viewer
rust 1,859,989 · typescript 235,537 · javascript 132,952 · python 20,426 · 6,407 files · digest 4f42637fac12 · built in 1.2 s · crystals off
crates/cre8-app-account/src/envelope.rs
Items
enum MutationOp impl MutationOp struct SignedAccountMutation impl SignedAccountMutation impl CanonicalBytes for SignedAccountMutation enum VerifyError impl Display for VerifyError impl Error for VerifyError
Functions
By call-graph weight (PageRank; 1.0 is the average function). 26 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| canonical_bytes_for_signingsrc/envelope.rs:110 | fn | 18 | 1 | 10 | 1 | 3.2 | |
| fresh_recordsrc/envelope.rs:214 | fn | 12 | 1 | 15 | 0 | 2.7 | |
| verify_account_mutationsrc/envelope.rs:195 | fn | 11 | 2 | 3 | 3 | 1.8 | |
| sign_account_mutationsrc/envelope.rs:144 | fn | 17 | 1 | 9 | 2 | 1.4 | |
| cache_withsrc/envelope.rs:227 | fn | 7 | 1 | 7 | 3 | 1.2 | |
| verify_withsrc/envelope.rs:235 | fn | 6 | 1 | 7 | 1 | 1.2 | |
| SignedAccountMutation::unsignedsrc/envelope.rs:93 | method | 3 | 1 | 3 | 0 | 0.8 | |
| MutationOp::as_strsrc/envelope.rs:62 | method | 6 | 2 | 0 | 0 | 0.5 | |
| SignedAccountMutation::is_signedsrc/envelope.rs:97 | method | 3 | 1 | 0 | 0 | 0.5 | |
| SignedAccountMutation::canonical_bytes_for_signingsrc/envelope.rs:132 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| VerifyError::fmtsrc/envelope.rs:179 | trait impl | 8 | 4 | 0 | 0 | 0.5 | |
| canonical_bytes_are_deterministicsrc/envelope.rs:245 | fn | 23 | 1 | 0 | 4 | 0.5 | |
| canonical_bytes_change_with_opsrc/envelope.rs:270 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| canonical_bytes_change_with_field_mutationssrc/envelope.rs:280 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| canonical_bytes_ignore_timestampssrc/envelope.rs:291 | fn | 16 | 1 | 0 | 2 | 0.5 | |
| canonical_bytes_canonicalize_metadata_key_ordersrc/envelope.rs:309 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| canonical_bytes_handle_missing_passport_idsrc/envelope.rs:324 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| sign_then_verify_roundtripsrc/envelope.rs:336 | fn | 12 | 1 | 0 | 4 | 0.5 | |
| sign_errors_when_passport_not_cachedsrc/envelope.rs:350 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| verify_unknown_account_when_lookup_returns_nonesrc/envelope.rs:357 | fn | 6 | 1 | 0 | 4 | 0.5 | |
| verify_bad_signature_when_pubkey_doesnt_matchsrc/envelope.rs:365 | fn | 8 | 1 | 0 | 6 | 0.5 | |
| verify_lookup_error_propagatessrc/envelope.rs:375 | fn | 6 | 1 | 0 | 4 | 0.5 | |
| tampered_record_fails_verificationsrc/envelope.rs:385 | fn | 16 | 1 | 0 | 4 | 0.5 | |
| tampered_op_fails_verificationsrc/envelope.rs:403 | fn | 15 | 1 | 0 | 4 | 0.5 | |
| signed_mutation_round_trips_through_jsonsrc/envelope.rs:422 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| unsigned_mutation_skips_optional_fields_in_jsonsrc/envelope.rs:434 | fn | 6 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.