MCPcopy Create free account
hub / github.com/deltadevsde/prism / all

Method all

crates/keys/src/algorithm.rs:24–32  ·  view source on GitHub ↗

Returns a vector containing all variants of `CryptoAlgorithm`.

()

Source from the content-addressed store, hash-verified

22impl CryptoAlgorithm {
23 /// Returns a vector containing all variants of `CryptoAlgorithm`.
24 pub fn all() -> Vec<Self> {
25 vec![
26 Self::Ed25519,
27 Self::Secp256k1,
28 Self::Secp256r1,
29 Self::Eip191,
30 Self::CosmosAdr36,
31 ]
32 }
33}
34
35impl std::str::FromStr for CryptoAlgorithm {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected