Files
notedeck/src/contacts.rs
William Casarin 672f95749a Revert "json: deserialize note ids into bytes"
This reverts commit 1ba597fc0a.
2023-07-06 17:50:20 -07:00

17 lines
341 B
Rust

use enostr::{EventId, Profile, Pubkey};
use std::collections::HashMap;
pub struct Contacts {
pub events: HashMap<Pubkey, EventId>,
pub profiles: HashMap<Pubkey, Profile>,
}
impl Contacts {
pub fn new() -> Contacts {
Contacts {
events: HashMap::new(),
profiles: HashMap::new(),
}
}
}