enostr: rename to_bech to npub
a bit more clear as to what this is
This commit is contained in:
@@ -115,7 +115,7 @@ impl Pubkey {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_bech(&self) -> Option<String> {
|
||||
pub fn npub(&self) -> Option<String> {
|
||||
bech32::encode::<bech32::Bech32>(HRP_NPUB, &self.0).ok()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user