UNPKG
@zk-email/snarkjs
Version:
latest (0.0.1)
0.0.1
zkSNARKs implementation in JavaScript with chunked zkeys
github.com/iden3/snarkjs
iden3/snarkjs
@zk-email/snarkjs
/
src
/
zkey_export_json.js
9 lines
(5 loc)
•
192 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ readZKey
as
readZKey }
from
"./zkey_utils.js"
;
export
default
async
function
zkeyExportJson
(
zkeyFileName
) {
const
zKey =
await
readZKey
(zkeyFileName,
true
);
return
zKey; }