You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using polkadotjs. When I create a wallet, I create a mnemonic first.
After generating the mnemonic, I tried to get some information(address, publickey, privatekey) like below source code.
Plz check these below source code and result, and give me some feedback which one is incorrect. If incorrect how can I modify that?
import { mnemonicGenerate, cryptoWaitReady, encodeAddress, mnemonicToMiniSecret, randomAsHex, ed25519PairFromSeed } from '@polkadot/util-crypto';
import { Keyring } from '@polkadot/keyring';
import { u8aToHex, stringToU8a, hexToU8a, u8aToString } from '@polkadot/util';
Hi, I'm using polkadotjs. When I create a wallet, I create a mnemonic first.
After generating the mnemonic, I tried to get some information(address, publickey, privatekey) like below source code.
Plz check these below source code and result, and give me some feedback which one is incorrect. If incorrect how can I modify that?
Additionally, How can I get "mnemonic" from secretKey?
The text was updated successfully, but these errors were encountered: