@dashevo/dashcore-lib
Version:
A pure and powerful JavaScript Dash library.
17 lines (16 loc) • 501 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
<!-- <script src="https://unpkg.com/@dashevo/dashcore-lib"></script>-->
<script src="../../dist/dashcore-lib.min.js"></script>
<script>
const { PrivateKey } = dashcore;
const privateKey = new PrivateKey();
const address = privateKey.toAddress().toString();
alert(`New private key generated ${privateKey.toString()}`);
</script>
</head>
<body></body>
</html>