Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
add script to build examples
Browse files Browse the repository at this point in the history
  • Loading branch information
xander committed Jan 15, 2024
1 parent 892f11e commit 9f8ae10
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Cargo.lock
.vscode/

# transcript
*.json
proof.json

# env var
*.env
Expand Down
4 changes: 4 additions & 0 deletions build_example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd tlsn
cargo build --release --example simple_prover
cargo build --release --example simple_notary
cargo build --release --example simple_prover
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "tlsn",
"version": "1.0.0",
"description": "<p align=\"center\"> <img src=\"./tlsn-banner.png\" width=1280 /> </p>",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build:examples": "sh ./build_examples.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/usherlabs/tlsn.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/usherlabs/tlsn/issues"
},
"homepage": "https://github.com/usherlabs/tlsn#readme"
}
4 changes: 4 additions & 0 deletions tlsn/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ path = "simple/simple_prover.rs"
name = "simple_verifier"
path = "simple/simple_verifier.rs"

[[example]]
name = "simple_notary"
path = "simple/simple_notary.rs"

[[example]]
name = "twitter_dm"
path = "twitter/twitter_dm.rs"
Expand Down

0 comments on commit 9f8ae10

Please sign in to comment.