Skip to content

This repo compiles .zkasm to a json ready for the zkExecutor

License

Notifications You must be signed in to change notification settings

0xPolygonHermez/zkasmcom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zkASM Compiler

Compiles zkasm file to a json ready for the zkExecutor

Setup

$ npm install
$ npm run build

Usage

Generate json file from zkasm file:

$ node src/zkasm.js <input.zkasm> -o <output.json>

For test purposes (partial inclusion of files):

  • allowUndefinedLabels: Allows to leave labels undefined.
  • allowOverwriteLabels: Allows to overwrite labels.
  • allowUndefinedVariables: Allows to leave variables without declaration (undefined)
node src/zkasm.js <input.zkasm> -o <output.json> -t allowUndefinedLabels -t allowOverwriteLabels -t allowUndefinedVariables

Instructions

In this link found more information about instructions.