1 viewer
rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off
cre8-util-crypto crates cargo crate
Shared crypto primitives — Ed25519 sign/verify helpers, SHA-256 helpers, SigningKeyCache. Single home; every app imports from here. Fourth crate in the cre8-util-* tier.
1workspace deps
111direct dependents
281transitive dependents
0calls out
1,246calls in
851call-graph weight
0.0%exact crystals
Neighbourhood
Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.
Files
lowhigh
File call graph
Resolved calls between this crate's files, callers left of callees.
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 88 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| sha256_hexsrc/lib.rs:73 | fn | 3 | 1 | 459 | 0 | 405 | |
| sha256_hex_strsrc/lib.rs:88 | fn | 3 | 1 | 300 | 1 | 150 | |
| hex_encodesrc/lib.rs:111 | fn | 3 | 1 | 55 | 0 | 38.4 | |
| signing_key_from_seedsrc/lib.rs:176 | fn | 3 | 1 | 60 | 1 | 24.8 | |
| seed_bytessrc/lib.rs:163 | fn | 8 | 1 | 1 | 0 | 21.6 | |
| verify_message_base64src/lib.rs:221 | fn | 23 | 3 | 62 | 0 | 20.3 | |
| sha256_rawsrc/lib.rs:80 | fn | 6 | 1 | 19 | 0 | 17.5 | |
| signing_key_pubkey_base64src/lib.rs:201 | fn | 3 | 1 | 62 | 0 | 14.4 | |
| hex_decodesrc/lib.rs:118 | fn | 7 | 2 | 10 | 1 | 12.1 | |
| hex_nibblesrc/lib.rs:134 | fn | 8 | 4 | 1 | 0 | 10.8 | |
| public_key_base64src/lib.rs:195 | fn | 4 | 1 | 41 | 1 | 8.9 | |
| base64_encodesrc/lib.rs:149 | fn | 3 | 1 | 22 | 0 | 7.9 | |
| merkle_root_from_sorted_leavessrc/merkle.rs:19 | fn | 20 | 5 | 14 | 2 | 7.9 | |
| sign_with_key_base64src/lib.rs:214 | fn | 4 | 1 | 21 | 0 | 7.6 | |
| fill_secure_randomsrc/lib.rs:48 | fn | 9 | 1 | 2 | 0 | 7.2 | |
| base64_decodesrc/lib.rs:156 | fn | 3 | 1 | 21 | 0 | 6.8 | |
| SigningKeyCache::newsrc/lib.rs:259 | method | 3 | 1 | 39 | 0 | 6.4 | |
| content_hash64src/lib.rs:103 | fn | 6 | 1 | 18 | 0 | 6.3 | |
| secure_random_bytessrc/lib.rs:349 | fn | 5 | 1 | 13 | 1 | 6 | |
| sign_message_base64src/lib.rs:207 | fn | 5 | 1 | 34 | 1 | 5.7 | |
| SigningKeyCache::sign_b64src/lib.rs:276 | method | 5 | 1 | 18 | 0 | 5.7 | |
| hex_decode_32src/lib.rs:127 | fn | 6 | 2 | 10 | 1 | 5.6 | |
| signing_key_from_bytessrc/lib.rs:188 | fn | 3 | 1 | 12 | 0 | 4.5 | |
| inner_hashsrc/merkle.rs:40 | fn | 7 | 1 | 2 | 1 | 4.1 | |
| secure_random_hexsrc/lib.rs:357 | fn | 5 | 1 | 21 | 2 | 3.9 | |
| MultiSigPolicy::newsrc/lib.rs:509 | method | 22 | 6 | 14 | 0 | 3 | |
| verify_multisigsrc/lib.rs:589 | fn | 40 | 5 | 9 | 2 | 2.5 | |
| MultiSigPolicy::is_authorizedsrc/lib.rs:559 | method | 3 | 1 | 2 | 0 | 2 | |
| StubPayload::canonical_bytes_for_signingsrc/lib.rs:859 | trait impl | 3 | 1 | 4 | 1 | 1.7 | |
| contributesrc/lib.rs:921 | fn | 5 | 1 | 7 | 3 | 1.3 | |
| SignerContribution::labeledsrc/lib.rs:421 | method | 11 | 1 | 2 | 0 | 1 | |
| SigningKeyCache::lensrc/lib.rs:299 | method | 3 | 1 | 1 | 0 | 0.9 | |
| multisig_satisfiedsrc/lib.rs:631 | fn | 3 | 1 | 3 | 1 | 0.9 | |
| SigningKeyCache::pubkey_b64src/lib.rs:283 | method | 5 | 1 | 3 | 0 | 0.8 | |
| MultiSigPolicy::thresholdsrc/lib.rs:549 | method | 3 | 1 | 2 | 0 | 0.7 | |
| SigningKeyCache::sharedsrc/lib.rs:263 | method | 3 | 1 | 1 | 1 | 0.7 | |
| pending_signerssrc/lib.rs:642 | fn | 4 | 1 | 2 | 1 | 0.7 | |
| MultiSigPolicy::unanimoussrc/lib.rs:533 | method | 14 | 3 | 1 | 1 | 0.6 | |
| MultiSigPolicy::authorized_pubkeyssrc/lib.rs:554 | method | 3 | 1 | 1 | 0 | 0.6 | |
| SignerContribution::newsrc/lib.rs:416 | method | 3 | 1 | 1 | 0 | 0.6 |
Outside the workspace
base64 ed25519-dalek getrandom sha2