Global Feed Post Login
Replying to Avatar Kenshin 🥷

I have tried for over 3 hours to make a code that decrypts a ncryptsec with python and the nostr_sdk library but I cannot figure it out... I read the nip49 but I am not experienced enough to make it work...

Does anyone know how to do it or have an example for python?

nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gprfmhxue69uhkcmmrdd3x77pwve5kzar2v9nzucm0d5hszxmhwden5te0wfjkccte9emk2um5v4exucn5vvhxxmmd9ux73xm6 #asknostr

Avatar
Yuki Kishimoto 11mo ago

```python

from nostr_sdk import EncryptedSecretKey

encrypted = EncryptedSecretKey.from_bech32("ncryptsec...")

secret_key = encrypted.to_secret_key("")

```

Reply to this note

Please Login to reply.

Discussion

No replies yet.