2

I'm trying to create a wallet with a secret passphrase(15 words), however I can't find any documentation. Any way to do it via command line?

Yes, I know how to do it via Tezbox

3

Not supported by the command line client at the moment, but the pytezos library supports it, see Key.generate.

Generates new key
:param passphrase: optional password
:param curve: b'sp' for secp251k1, b'p2' for P256/secp256r1, b'ed' for Ed25519 (default)
:param strength: mnemonic strength, default is 128
:param language: mnemonic language, default is english
:param export: export as json file in the current folder, default is True :return: Key
  • Thanks! does that also create encrypted keys? – Mack Baise Jan 23 '20 at 4:04
  • I wrote the earliesr version of that lib and it did. I would assume it still does. – Arthur B Jan 23 '20 at 16:37
0

What do you mean by "I know how to do it via Tezbox"? Do you mean via UI or with the same library eztz.js by Stephen Andrews? This is the example code to create a new wallet using it:

<script src="eztz.min.js"></script>
<script>
    let mnemonic = eztz.crypto.generateMnemonic();
    let password = Math.random().toString(36).substring(2,15);
    let wallet = eztz.crypto.generateKeys(mnemonic, password);
    console.log('address: '+wallet.pkh);
    console.log('private key: '+wallet.sk);
    console.log('mnemonic: '+mnemonic);
    console.log('password: '+password);
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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