```
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:
This is where the change is as far as I can tell.
GitHub
nostr/crates/nostr/src/key/public_key.rs at v0.32.0 · rust-nostr/nostr
Rust implementation of the nostr protocol, high-level client library, Nostr Wallet Connect and more. - rust-nostr/nostr
GitHub
nostr/crates/nostr/src/key/public_key.rs at v0.39.0 · rust-nostr/nostr
Rust implementation of the nostr protocol, high-level client library, Nostr Wallet Connect and more. - rust-nostr/nostr



