Abstract away connection logic

This commit is contained in:
Joscha 2022-02-12 14:37:06 +01:00
parent e482ba3e05
commit 805df53699
7 changed files with 217 additions and 9 deletions

View file

@ -8,7 +8,7 @@ use crate::macros::id_alias;
// TODO Use base64 representation instead
#[derive(Debug, Clone, Copy, Deserialize, Serialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Deserialize, Serialize)]
struct Id(#[serde(with = "hex")] [u8; 32]);
impl Id {