json: deserialize note ids into bytes

This commit is contained in:
William Casarin
2023-07-06 17:09:39 -07:00
parent 7b26948101
commit 1ba597fc0a
9 changed files with 84 additions and 29 deletions

View File

@@ -1,8 +1,8 @@
use enostr::{EventId, Profile, Pubkey};
use enostr::{NoteId, Profile, Pubkey};
use std::collections::HashMap;
pub struct Contacts {
pub events: HashMap<Pubkey, EventId>,
pub events: HashMap<Pubkey, NoteId>,
pub profiles: HashMap<Pubkey, Profile>,
}