crashes with error:

AttributeError: type object 'PublicKey' has no attribute 'from_bech32'. Did you mean: 'to_bech32'?

Reply to this note

Please Login to reply.

Discussion

Yeah it should be to_bech32. Here is an example code from their GitHub https://github.com/rust-nostr/nostr/blob/master/bindings/nostr-sdk-ffi/python/examples/metadata.py

good find, but that program is a bit too old as well, (it is only one month old) ... but it crashes with this error :

nostr:nevent1qgs2xyfsr74phxjwj6tqrp8wgshhp3ktkuuqgnkfvwk59lexge3l3usqyqzy3slfqlxr3u5sncrqm5lc2kx5x6lf7jhgr3wvxnv2cr8s7z6l2vsdn6n