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

Enum CryptoAlgorithm

crates/keys/src/algorithm.rs:9–20  ·  view source on GitHub ↗

Cryptographic algorithm supported by prism.

Source from the content-addressed store, hash-verified

7#[serde(rename_all = "lowercase")]
8/// Cryptographic algorithm supported by prism.
9pub enum CryptoAlgorithm {
10 /// Edwards-curve Digital Signature Algorithm (EdDSA) using SHA-512 and Curve25519
11 Ed25519,
12 /// ECDSA signatures using the secp256k1 curve (used in Bitcoin/Ethereum)
13 Secp256k1,
14 /// ECDSA signatures using the NIST P-256 curve, also known as prime256v1
15 Secp256r1,
16 /// Signatures according to ethereum's EIP-191
17 Eip191,
18 /// Signatures according to Cosmos' ADR-36
19 CosmosAdr36,
20}
21
22impl CryptoAlgorithm {
23 /// Returns a vector containing all variants of `CryptoAlgorithm`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected