Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Sep 16, 2024
1 parent 2ded651 commit a387f44
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/ic-cdk/src/api/management_canister/schnorr/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,25 @@ pub struct SchnorrKeyId {

/// Schnorr Algorithm.
#[derive(
CandidType, Serialize, Deserialize, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy,
CandidType,
Serialize,
Deserialize,
Debug,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash,
Clone,
Copy,
Default,
)]
pub enum SchnorrAlgorithm {
/// BIP-340 secp256k1.
#[serde(rename = "bip340secp256k1")]
#[default]
Bip340secp256k1,
/// ed25519.
#[serde(rename = "ed25519")]
Ed25519,
}

impl Default for SchnorrAlgorithm {
fn default() -> Self {
SchnorrAlgorithm::Bip340secp256k1
}
}

0 comments on commit a387f44

Please sign in to comment.