json: deserialize note ids into bytes
This commit is contained in:
@@ -6,6 +6,7 @@ pub enum Error {
|
||||
MessageDecodeFailed,
|
||||
InvalidSignature,
|
||||
Json(serde_json::Error),
|
||||
Hex(hex::FromHexError),
|
||||
Generic(String),
|
||||
}
|
||||
|
||||
@@ -36,3 +37,9 @@ impl From<serde_json::Error> for Error {
|
||||
Error::Json(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<hex::FromHexError> for Error {
|
||||
fn from(e: hex::FromHexError) -> Self {
|
||||
Error::Hex(e)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user