py-substrate-interface icon indicating copy to clipboard operation
py-substrate-interface copied to clipboard

Polkadot. js createFromJson function corresponds to which python SDK function?

Open 99Kies opened this issue 3 years ago • 7 comments

And unlock methods

99Kies avatar Jan 11 '22 09:01 99Kies

I'm not familiar with all functionality of Polkadot.js, so you have to give more context what exactly your question is..

arjanz avatar Jan 11 '22 10:01 arjanz

@arjanz In fact, it is about

  1. Pksc8 decryption.
  2. and ss58 address -> publickey

99Kies avatar Jan 13 '22 11:01 99Kies

We need this to implement the createFromJson method in the JS library.

99Kies avatar Jan 13 '22 11:01 99Kies

So if I get it right it's to import the JSON file that can be exported in for example https://polkadot.js.org/apps/#/accounts and convert that format (which is using Pksc8) to a Keypair object?

That would be an interesting addition to the library. I'm working on something else right now but I'll look into it when I have the time.

arjanz avatar Jan 13 '22 13:01 arjanz

And of course a PR to get me a head start is always appreciated :)

arjanz avatar Jan 13 '22 13:01 arjanz

And of course a PR to get me a head start is always appreciated :)

I think this is very important, so i suggest setting this issue as TODO

99Kies avatar Jan 14 '22 15:01 99Kies

Functionality released in https://github.com/polkascan/py-substrate-interface/releases/tag/v1.3.4

arjanz avatar Nov 16 '22 20:11 arjanz