Skip to content

Commit

Permalink
update builder
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmatos committed Dec 13, 2022
1 parent 878e625 commit 72a2460
Show file tree
Hide file tree
Showing 8 changed files with 1,041 additions and 1,045 deletions.
7 changes: 7 additions & 0 deletions config/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"module": "ESNext",
"outDir": "../dist/esm"
}
}
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<script src="./dist/umd/IdenJsCrypto.js"></script>
<script src="./dist/umd/index.js"></script>
<title>Test</title>
</head>

<body>
Test browser
</body>
<script>
const { poseidon, PrivateKey, Signature, utils, ffUtils } = IdenJsCrypto;
const msgBuf = utils.fromHexString('000102030405060708090000');
const { poseidon, PrivateKey, Signature, utils, ffUtils, Hex } = IdenJsCrypto;
const msgBuf = Hex.decodeString('000102030405060708090000');
const msg = ffUtils.leBuff2int(msgBuf);

const skBuff = utils.fromHexString('0001020304050607080900010203040506070809000102030405060708090001');
const skBuff = Hex.decodeString('0001020304050607080900010203040506070809000102030405060708090001');

const privateKey = new PrivateKey(skBuff);

Expand Down
Loading

0 comments on commit 72a2460

Please sign in to comment.