mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-09 07:55:53 +01:00
chore: typos
This commit is contained in:
@@ -153,7 +153,7 @@ pub fn verify_message(
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Err(Error::TokenNotVerifed)
|
||||
Err(Error::TokenNotVerified)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user