Add 'more options' to each note
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
1 parent
2208e68726
commit
6f5f090fbe
9 files changed
+193
-28
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user