Add 'more options' to each note

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind committed 2024-09-19 19:04:28 -04:00
1 parent 2208e68726
commit 6f5f090fbe
9 files changed
+193 -28

No files matched your search

+4
View File
@@ -68,6 +68,10 @@ impl Pubkey {
Ok(Pubkey(data.1.try_into().unwrap()))
}
}
pub fn to_bech(&self) -> Option<String> {
nostr::bech32::encode::<nostr::bech32::Bech32>(HRP_NPUB, &self.0).ok()
}
}
impl fmt::Display for Pubkey {