API for checking if subscription matches key

This commit is contained in:
Greg Heartsfield
2021-11-24 16:22:49 -06:00
parent 5bc36cc591
commit 03bc1fab18
2 changed files with 23 additions and 0 deletions
+5
View File
@@ -54,6 +54,11 @@ impl Event {
let _e: Event = serde_json::from_str(json)?;
Err(Error::EventParseFailed)
}
// check if this event is valid (should be propagated, stored) based on signature.
pub fn is_valid(&self) -> bool {
false
}
}
#[cfg(test)]