```

pk = PublicKey.parse("npub1sp0rex959gshtgypve45upmm4vepxm4xea9eja4f2ftfj97euv5s3rj02v")

```

I guess the function name changed. The parse function now takes all kinds of inputs.

This library is written in rust so I am not able to decipher as well as i would like, but if you compare:

https://github.com/rust-nostr/nostr/blob/v0.32.0/crates/nostr/src/key/public_key.rs

https://github.com/rust-nostr/nostr/blob/v0.39.0/crates/nostr/src/key/public_key.rs

This is where the change is as far as I can tell.

Reply to this note

Please Login to reply.

Discussion

Let me retype that:

```

pk = PublicKey.parse("npub...")

it got stuck a few lines later at

line 17, in main

events = await client.get_events_of([f], timedelta(seconds=15))

^^^^^^^^^^^^^^^^^^^^

AttributeError: 'Client' object has no attribute 'get_events_of'

https://github.com/ev3rst/nostr_sdk_examples/blob/main/ns_read_metadata.py