-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from iosis-tech/npm
Npm
- Loading branch information
Showing
9 changed files
with
63 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Cairo-VM Verifier | ||
|
||
![Version](https://img.shields.io/badge/v0.0.3-green?style=flat-square&logo=git&logoColor=white&label=version) | ||
![Continuous Integration](https://img.shields.io/github/actions/workflow/status/iosis-tech/cairovm-verifier/ci.yml?style=flat-square&logo=githubactions&logoColor=white&label=Continuous%20Integration) | ||
|
||
This is the Rust implementation of the Cairo-VM STARK verifier with layouts. The code is inspired by StarkWare's [Cairo-verifier](https://github.com/starkware-libs/cairo-lang) implementation in Cairo0. | ||
|
||
### Example usage | ||
```js | ||
import init, { cairovm_verify } from 'cairovm_verifier'; | ||
|
||
async function run(proof_json) { | ||
await init(); // Initialize the Wasm module | ||
try { | ||
const [programHash, programOutput] = JSON.parse( await cairovm_verify(proof_json) ); | ||
} catch (err) { | ||
console.error(`Verification failed: ${err}`); | ||
} | ||
} | ||
``` | ||
|
||
## Contributing | ||
|
||
Feel free to open issues or submit pull requests to help improve this project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "cairovm_verifier", | ||
"type": "module", | ||
"keywords": ["stark", "wasm", "verifier", "cairovm"], | ||
"description": "CairoVM verifier - starknet_with_keccak & blake2s", | ||
"version": "0.0.3", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/iosis-tech/cairovm-verifier" | ||
}, | ||
"files": [ | ||
"cairovm_verifier_wasm_bg.wasm", | ||
"cairovm_verifier_wasm.js", | ||
"cairovm_verifier_wasm.d.ts" | ||
], | ||
"main": "cairovm_verifier_wasm.js", | ||
"homepage": "", | ||
"types": "cairovm_verifier_wasm.d.ts", | ||
"sideEffects": [ | ||
"./snippets/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.