Global Feed Post Login
Replying to Avatar LightningSpore

```

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.

Avatar
LightningSpore 11mo ago

Let me retype that:

```

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

Reply to this note

Please Login to reply.

Discussion

No replies yet.