“ Tezos”钱包地址生成
1 个回答
- 投票数
我用JS脚本编写了简单的html:
<!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>
您必须执行一些简单的步骤:
最后,您必须看到包含10个生成的钱包的页面.
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.
有人可以给我逐步的入门指南,介绍如何为我的tezos钱包创建多个(例如100个)新地址(公用密钥哈希,以"tz"开头)吗?