migrating cjs -> esm
This commit is contained in:
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
12
dist/index.html
vendored
Normal file
12
dist/index.html
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>ZKL Key Derivation Service Demo</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="bundle.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
15
dist/index.js
vendored
Normal file
15
dist/index.js
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { generateKeypair } from "../key-derivation.js";
|
||||
|
||||
(async () => {
|
||||
console.log("start");
|
||||
|
||||
const mnemonic =
|
||||
"digital radio analyst fine casino have mass blood potato hat web capital prefer debate fee differ spray cloud";
|
||||
|
||||
const { publicKey, privateKey } = await generateKeypair(mnemonic);
|
||||
console.log(publicKey.keyType, privateKey.keyType);
|
||||
console.log(publicKey.asHexString, privateKey.asHexString);
|
||||
console.log(publicKey.asByteArray, privateKey.asByteArray);
|
||||
|
||||
console.log("done");
|
||||
})();
|
||||
Reference in New Issue
Block a user