ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
427 stars 111 forks source link

[RPC] `insertKey` method is not expecting a Substrate URI #1709

Open EclesioMeloJunior opened 3 years ago

EclesioMeloJunior commented 3 years ago

Issue summary

could not byteify non 0x prefixed string: null

Screenshots

1) Sending a suri but got error response image the log what gossamer node are receiving: image

2) Trying to send a hex seed, got the same error response: image the log what gossamer node are receiving: image

Other information and links

decentration commented 2 years ago

you won't be able to get the mnemonic seed from subkey inspect, the inspect element only provides the public information of the key. You would have to generate a key and then keep the seed in a safe place.

EclesioMeloJunior commented 2 years ago

@decentration thanks for clarifying that!

EclesioMeloJunior commented 2 years ago

I've tryied to call this RPC call using the https://polkadot.js.org/apps on polkadot and kusama networks and to both nets the RPC call author.insertKey outputs:

1: author.insertKey
-32601: Method not found

And I look at smoldot implemented rpc calls and I noticed that author_insertKey is not implemented yet

@timwu20 @danforbes fyi

danforbes commented 2 years ago

@EclesioMeloJunior does this documentation help clarify the format that the Substrate implementation expects? https://github.com/substrate-developer-hub/substrate-docs/blob/e537cc2de3618d283e58e308c30ae6c436d0569e/v3/tutorials/05-private-network/e-launch-custom-chain/index.mdx#option-1-use-the-polkadot-js-apps-ui

EclesioMeloJunior commented 2 years ago

@danforbes yes, helps a lot! Thanks!