Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 20, 2024
1 parent a5199e6 commit da2c622
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 272 deletions.
6 changes: 3 additions & 3 deletions wasm-binding/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "cairovm_verifier_wasm"
description.workspace = true
description = "CairoVM verifier - starknet_with_keccak & blake2s"
edition.workspace = true
homepage.workspace = true
license-file.workspace = true
license = "Apache-2.0"
readme.workspace = true
repository.workspace = true
version.workspace = true
Expand All @@ -23,7 +23,7 @@ crate-type = ["cdylib", "rlib"]
getrandom = { version = "0.2.15", features = ["js"] }

[features]
default = ["recursive", "keccak"]
default = ["starknet_with_keccak", "keccak"]
dex = []
recursive = []
recursive_with_poseidon = []
Expand Down
201 changes: 0 additions & 201 deletions wasm-binding/LICENSE

This file was deleted.

10 changes: 7 additions & 3 deletions wasm-binding/pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ This is the Rust implementation of the Cairo-VM STARK verifier with layouts. The

### Example usage
```js
import init, { cairovm_verify } from 'cairovm_verifier_wasm';
import init, { cairovm_verify } from 'cairovm_verifier';

async function run(proof_json) {
await init(); // Initialize the Wasm module
const [programHash, outputHash] = await cairovm_verify(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}`);
}
}
```

Expand Down
5 changes: 2 additions & 3 deletions wasm-binding/pkg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "cairovm_verifier_wasm",
"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",
Expand All @@ -11,14 +12,12 @@
"files": [
"cairovm_verifier_wasm_bg.wasm",
"cairovm_verifier_wasm.js",
"cairovm_verifier_wasm_bg.js",
"cairovm_verifier_wasm.d.ts"
],
"main": "cairovm_verifier_wasm.js",
"homepage": "",
"types": "cairovm_verifier_wasm.d.ts",
"sideEffects": [
"./cairovm_verifier_wasm.js",
"./snippets/*"
]
}
23 changes: 0 additions & 23 deletions wasm-binding/web/index.html

This file was deleted.

39 changes: 0 additions & 39 deletions wasm-binding/web/main.js

This file was deleted.

0 comments on commit da2c622

Please sign in to comment.