diff --git a/crates/cdk/src/dhke.rs b/crates/cdk/src/dhke.rs index 6f1a5d66..ac5eeb3e 100644 --- a/crates/cdk/src/dhke.rs +++ b/crates/cdk/src/dhke.rs @@ -153,7 +153,7 @@ pub fn verify_message( return Ok(()); } - Err(Error::TokenNotVerifed) + Err(Error::TokenNotVerified) } #[cfg(test)] diff --git a/crates/cdk/src/error.rs b/crates/cdk/src/error.rs index 6cd1f9b6..9fa09174 100644 --- a/crates/cdk/src/error.rs +++ b/crates/cdk/src/error.rs @@ -22,7 +22,7 @@ pub enum Error { TokenSpent, /// Token could not be validated #[error("Token not verified")] - TokenNotVerifed, + TokenNotVerified, /// Bolt11 invoice does not have amount #[error("Invoice Amount undefined")] InvoiceAmountUndefined, diff --git a/crates/cdk/src/nuts/nut11/mod.rs b/crates/cdk/src/nuts/nut11/mod.rs index a6624c1c..3c47acc5 100644 --- a/crates/cdk/src/nuts/nut11/mod.rs +++ b/crates/cdk/src/nuts/nut11/mod.rs @@ -832,7 +832,7 @@ mod tests { assert!(valid_proof.verify_p2pk().is_ok()); - // Proof with onlt one of the required signatures + // Proof with only one of the required signatures let invalid_proof = r#"{"amount":0,"secret":"[\"P2PK\",{\"nonce\":\"0ed3fcb22c649dd7bbbdcca36e0c52d4f0187dd3b6a19efcc2bfbebb5f85b2a1\",\"data\":\"0249098aa8b9d2fbec49ff8598feb17b592b986e62319a4fa488a3dc36387157a7\",\"tags\":[[\"pubkeys\",\"0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798\",\"02142715675faf8da1ecc4d51e0b9e539fa0d52fdd96ed60dbe99adb15d6b05ad9\"],[\"n_sigs\",\"2\"],[\"sigflag\",\"SIG_INPUTS\"]]}]","C":"02698c4e2b5f9534cd0687d87513c759790cf829aa5739184a3e3735471fbda904","id":"009a1f293253e41e","witness":"{\"signatures\":[\"83564aca48c668f50d022a426ce0ed19d3a9bdcffeeaee0dc1e7ea7e98e9eff1840fcc821724f623468c94f72a8b0a7280fa9ef5a54a1b130ef3055217f467b3\"]}"}"#; let invalid_proof: Proof = serde_json::from_str(invalid_proof).unwrap();