pippellia on Nostr: very noob nostr "dev" question here #asknostr I am using the python nostr-sdk, and ...
very noob nostr "dev" question here #asknostr
I am using the python nostr-sdk, and the documentation is seriously lacking (or I couldn't find it after some hours which would be bad).
How can I turn a PubKey() object into an npub?
with to_hex() I get the hex version, but I want the npub...
Published at
2024-04-14 15:37:48Event JSON
{
"id": "de8284abc89e82f194e8dd6d8e0852bc525bdfacfa32bea7ac8dad71d9c53095",
"pubkey": "f683e87035f7ad4f44e0b98cfbd9537e16455a92cd38cefc4cb31db7557f5ef2",
"created_at": 1713109068,
"kind": 1,
"tags": [
[
"t",
"asknostr"
]
],
"content": "very noob nostr \"dev\" question here #asknostr\n\nI am using the python nostr-sdk, and the documentation is seriously lacking (or I couldn't find it after some hours which would be bad).\n\nHow can I turn a PubKey() object into an npub?\n\nwith to_hex() I get the hex version, but I want the npub...",
"sig": "160fb2d8e9959684db9da3cb73fc86a6715d3ac19becd54bc7fe84203003b9a27dc09d9e4520accbb5d4c7c1332c6fc47041ec28517f414b8c2fae0c52b8f1a8"
}