Closed bodily11 closed 2 years ago
First, I notice that you are still using cryptography
. Please reinstall ic-py as I alter some crypto package.
Second, it seems that plug wallet use secp256k1 algorithm to generate key. dfx
does not support to import pem file exported by plug. Please refer to https://github.com/Psychedelic/plug/issues/263#issue-1031995153
It would be better if you use dfx new identity
to generate identity and pem file. Though ic-py support for loading pem file from plug wallet now, I don't know whether it will cause some problem further.
Excellent! Thank you! Got it working and made my first NFT transfer using the Python agent. 🎉 Pretty slick.
Do you have an example for how to import a pem identity? I have exported a dfx identity from Plug Wallet, which downloaded as identity.pem. Now I am trying to import private key. Here is the error I get:
And then here is the code I am running.
I commented this on the old issue thinking it would reopen it, but it didn't open it, so I'm commenting again here. Thanks!