diff --git a/src/transaction/bundlr.rs b/src/transaction/bundlr.rs index 90bb4ec..1a6c2c4 100644 --- a/src/transaction/bundlr.rs +++ b/src/transaction/bundlr.rs @@ -289,7 +289,7 @@ impl BundlrTx { verifier.verify(pub_key, &message, signature) } - pub fn get_signarure(&self) -> Vec { + pub fn get_signature(&self) -> Vec { self.signature.clone() } } diff --git a/src/verify/file.rs b/src/verify/file.rs index 3c32ba6..3558fa1 100644 --- a/src/verify/file.rs +++ b/src/verify/file.rs @@ -42,7 +42,7 @@ pub async fn verify_file_bundle(filename: String) -> Result, BundlrErr match tx.verify().await { Err(_) => return Err(BundlrError::InvalidSignature), Ok(_) => { - let sig = tx.get_signarure(); + let sig = tx.get_signature(); let item = Item { tx_id: id, signature: sig,