docs icon indicating copy to clipboard operation
docs copied to clipboard

Additional changes in examples

Open Imod7 opened this issue 3 years ago • 1 comments

Kindly mentioning some additional changes that are needed related to the PR #350 Also mentioned in this comment here

  • In the page of Create Mnemonic the change needs to be ed25519PairFromSeed and not ed25519PairFromSecret

  • In the Sign & Verify Message page there is a need for a 3rd change in the code since it still gives the error Expected a valid secretKey. - By checking the arguments that ed25519Sign gets, it seems like it expects a Pair. I replaced the secretKey with a { publicKey, secretKey } Pair as shown below and it worked. - Replaced this line const messageSignature = ed25519Sign(encrypted, secretKey); with this line const messageSignature = ed25519Sign(encrypted, { publicKey, secretKey });

Sidenote : I tried to open a PR for these changes but I get a 403 Forbidden error message. Any ideas how to solve this without changing to ssh? Thank you very much in advance!

Imod7 avatar Sep 19 '22 11:09 Imod7

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot avatar Oct 10 '22 13:10 polkadot-js-bot

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

polkadot-js-bot avatar Oct 24 '22 14:10 polkadot-js-bot