I try to develop the eos crypto wallet app on Expo. But I can't find the solution to generate the eos keys from Mnemonic/seed phrases on Expo.

Once you know the solution, please let me know.

  • What exactly did you try?
    – tmm
    Apr 5, 2022 at 11:44
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Apr 5, 2022 at 11:44
  • I tried to generate the seed phrase firstly. and hope make the eos keys(private and public keys) from the generated seed phrase.
    – MidasTouch
    Apr 5, 2022 at 14:47

1 Answer 1


From what I understand, you have a string with seed/mnemonic and you need to generate an eos private & public keys from it

import * as ecc from 'eosjs-ecc';

function generateKeyPair(seedString){
    const seed = Buffer.from(seedString).toString('hex');
    const privateKey = ecc.seedPrivate(seed);
    const publicKey = ecc.privateToPublic(privateKey);
    return {privateKey, publicKey}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.