pynostr
pynostr copied to clipboard
Python library for nostr
Hoping someone is able to implement NIP-57: Lightning Zaps. It's really useful.
### Overview This pull request addresses a bug in the showmetadata.py where `NotRenderableError` is thrown when attempting to add integer values to rows in a Rich table. The Rich library...
I wrote a script to send messages that works (I see the dms on Amathyst on my phone), but I can't figure out how to write a script that recieves...
- Add how to decrypt DMs to README.md - Changed decrypt method to set public_key_hex = self.pubkey instead of public_key_hex = self.recipient_pubkey
I'm getting padding errors when I apply the decrypt function for EncryptedMessages. Do I need a specific version of the dependencies? Is this library still being actively developed?
when getting messages from the message pool, `EventMessage`s have an attribute called `event` that has the type of `str`. however when looking at the message processing loop, the event json...
How can I use the library without the ssl_options in a local environment? I used it before but apparently the ssl_options was removed and now I cannot test the library...
Maybe it's something that I don't understand about the relay-manager mechanism. I wanted to detect when my account is mentioned in a reply-note to some parent-note, and then get the...
Code: ```py print("Posting hello world...") event = Event( "hello world!", kind=EventKind.TEXT_NOTE ) print("Event made") event.sign(self.private_key.hex()) print("Event signed") self.relay_manager.publish_event(event) print("Event published") while self.relay_manager.message_pool.has_ok_notices(): ok_msg = self.relay_manager.message_pool.get_ok_notice() print("OK message", ok_msg) while self.relay_manager.message_pool.has_notices():...
I'm experimenting with the pynostr library and REPOST (Event Kinds) is also useful - EventKind(IntEnum) NIP18: REPOSTS is Kind 6 https://github.com/nostr-protocol/nips/blob/master/18.md add this little addition please hopefully I'll be able...