Skip to content

Commit

Permalink
Add eddsa to Dsa from_str
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Sep 21, 2024
1 parent 6c512e6 commit d8504f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/web5/src/crypto/dsa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ impl std::str::FromStr for Dsa {
fn from_str(input: &str) -> std::result::Result<Self, Web5Error> {
match input.to_ascii_lowercase().as_str() {
"ed25519" => Ok(Dsa::Ed25519),
"eddsa" => Ok(Dsa::Ed25519),
"secp256k1" => Ok(Dsa::Secp256k1),
"es256k" => Ok(Dsa::Secp256k1),
_ => Err(Web5Error::Parameter(format!("unsupported dsa {}", input))),
Expand Down

0 comments on commit d8504f0

Please sign in to comment.