1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-util-raw-route-auth/src/lib.rs
Items
const ASSERTION_HEADER const SIGNATURE_HEADER const ASSERTION_SCHEMA const ENV_RAW_ROUTE_AUTH const MAX_CLOCK_SKEW_MS const MAX_PEER_ID_BYTES const MAX_NETWORK_ID_BYTES const MAX_ROUTE_BYTES const MAX_ASSERTION_HEADER_BYTES struct CallerAssertionV1 enum VerifiedCaller impl VerifiedCaller struct RawAuthError impl RawAuthError impl Display for RawAuthError impl Error for RawAuthError struct CallerCredentials static NONCE_SEQUENCE static NONCE_EPOCH_NANOS static NONCES
Functions
By call-graph weight (PageRank; 1.0 is the average function). 22 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| public_gateway_bind_requested_from_envsrc/lib.rs:175 | fn | 24 | 5 | 2 | 2 | 2.8 | |
| authenticate_raw_callersrc/lib.rs:224 | fn | 33 | 5 | 25 | 5 | 2.5 | |
| signed_caller_headerssrc/lib.rs:392 | fn | 34 | 4 | 19 | 5 | 2.4 | |
| hex_sha256src/lib.rs:462 | fn | 4 | 1 | 4 | 0 | 2.1 | |
| RawAuthError::newsrc/lib.rs:138 | method | 3 | 1 | 5 | 0 | 2.1 | |
| auth_gate_modesrc/lib.rs:160 | fn | 10 | 1 | 3 | 3 | 1.9 | |
| headersrc/lib.rs:447 | fn | 8 | 1 | 3 | 0 | 1.8 | |
| raw_route_auth_requiredsrc/lib.rs:205 | fn | 8 | 7 | 4 | 2 | 1.3 | |
| canonical_assertion_bytessrc/lib.rs:441 | fn | 3 | 1 | 3 | 0 | 1.2 | |
| local_peer_seedsrc/lib.rs:428 | fn | 10 | 1 | 3 | 0 | 1.1 | |
| claim_noncesrc/lib.rs:489 | fn | 12 | 2 | 2 | 0 | 1 | |
| verified_caller_from_assertionsrc/lib.rs:258 | fn | 38 | 4 | 1 | 9 | 0.9 | |
| declared_peer_idsrc/lib.rs:458 | fn | 3 | 1 | 1 | 1 | 0.9 | |
| fresh_noncesrc/lib.rs:474 | fn | 6 | 1 | 1 | 1 | 0.9 | |
| VerifiedCaller::is_verifiedsrc/lib.rs:115 | method | 3 | 1 | 5 | 0 | 0.8 | |
| VerifiedCaller::receipt_labelsrc/lib.rs:121 | method | 7 | 3 | 4 | 0 | 0.8 | |
| is_canonical_sha256src/lib.rs:467 | fn | 3 | 2 | 1 | 0 | 0.6 | |
| decode_assertionsrc/lib.rs:297 | fn | 7 | 1 | 1 | 1 | 0.6 | |
| verify_assertion_shapesrc/lib.rs:307 | fn | 51 | 14 | 1 | 4 | 0.6 | |
| trusted_peer_public_keysrc/lib.rs:363 | fn | 13 | 1 | 1 | 1 | 0.6 | |
| VerifiedCaller::peer_idsrc/lib.rs:108 | method | 6 | 2 | 0 | 0 | 0.5 | |
| RawAuthError::fmtsrc/lib.rs:144 | trait impl | 3 | 1 | 0 | 0 | 0.5 |
Source not readable from this process.