Geração de endereços de carteira 'Tezos'
1 responda
- votos
Escrevi HTML simples com o Script JS:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="eztz.min.js"></script>
</head>
<body>
<h3>Wallets:</h3>
<p id = "text-id"></p>
</body>
<script>
let text = "";
for (let i = 0; i < 10; i++) { // loop (repeat 10 times)
let mnemonic = eztz.crypto.generateMnemonic(); // generate mnemonic phrase
let password = Math.random().toString(36).substring(2, 15); // generate password
let wallet = eztz.crypto.generateKeys(mnemonic, password); // create wallet by password and mnemonic
// text with wallet info
text += "<br><b>Mnemonic:</b> " + mnemonic +
"<br><b>Password:</b> " + password +
"<br><b>Public key: </b>" + wallet.pkh +
"<br><b>Private key: </b>" + wallet.sk + "</br>";
}
document.getElementById('text-id').innerHTML = text; // put list of keys to html
</script>
</html>
Vocêtem quefazer algumasetapas simples:
Finalmente vocêtem que ver apágina com 10 carteirasgeradas.
I wrote simple html with JS script:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="eztz.min.js"></script>
</head>
<body>
<h3>Wallets:</h3>
<p id = "text-id"></p>
</body>
<script>
let text = "";
for (let i = 0; i < 10; i++) { // loop (repeat 10 times)
let mnemonic = eztz.crypto.generateMnemonic(); // generate mnemonic phrase
let password = Math.random().toString(36).substring(2, 15); // generate password
let wallet = eztz.crypto.generateKeys(mnemonic, password); // create wallet by password and mnemonic
// text with wallet info
text += "<br><b>Mnemonic:</b> " + mnemonic +
"<br><b>Password:</b> " + password +
"<br><b>Public key: </b>" + wallet.pkh +
"<br><b>Private key: </b>" + wallet.sk + "</br>";
}
document.getElementById('text-id').innerHTML = text; // put list of keys to html
</script>
</html>
You have to make some simple steps:
Finally you have to see page with 10 generated wallets.
Alguémpode,porfavor,me dar umpasso apassoguianoob sobre como criar umnúmero denovosendereços (dizes 100)novos (hashes de chavepública,começando com algo como 'tz')paraminha carteira de Tezos?