Represent messages
This commit is contained in:
parent
cfaafba77f
commit
286ace55b4
3 changed files with 33 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ use sha2::{Digest, Sha256};
|
|||
|
||||
// TODO Use base64 representation instead
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
#[derive(Debug, Clone, Copy, Deserialize, Serialize)]
|
||||
pub struct Id(#[serde(with = "hex")] [u8; 32]);
|
||||
|
||||
impl Id {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue