2

In my app on back-end the next code is used to get signer:

const { InMemorySigner } = require('@taquito/signer');

const signer = InMemorySigner.fromSecretKey(
  signingKey,
  TEZOS_SERVICE_PASSPHRASE
)

where TEZOS_SERVICE_PASSPHRASE - some passphrase, that need to be used on front-end to encrypt secret key. According to Taquito documentation https://tezostaquito.io/typedoc/classes/_taquito_signer.inmemorysigner.html, second param is a Passphrase to decrypt the private key if it is encrypted. But how can I encrypt secret key using passphrase on front-end?

1 Answer 1

1

You are not required to have an encrypted key edesk, you can just provide the edsk without password and encrypt your wallet storage the way you prefer.

Answering your exact question:

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.