feat: handle NIP-09 for deletion events

This commit is contained in:
Greg Heartsfield
2022-02-27 11:35:23 -06:00
parent ed3a6b9692
commit 1d499cf12b
4 changed files with 68 additions and 1 deletions
+8
View File
@@ -48,6 +48,8 @@ pub enum Error {
JoinError,
#[error("Hyper Client error")]
HyperError(hyper::Error),
#[error("Hex encoding error")]
HexError(hex::FromHexError),
#[error("Unknown/Undocumented")]
UnknownError,
}
@@ -58,6 +60,12 @@ pub enum Error {
// }
//}
impl From<hex::FromHexError> for Error {
fn from(h: hex::FromHexError) -> Self {
Error::HexError(h)
}
}
impl From<hyper::Error> for Error {
fn from(h: hyper::Error) -> Self {
Error::HyperError(h)