Skip to content

Commit

Permalink
Merge pull request #803 from LuffySama-Dev/hfaudit02luffy
Browse files Browse the repository at this point in the history
✅ Tutorial 2: Private Inputs and Hash Functions Audited with latest version and updated Readme
  • Loading branch information
barriebyron authored Jan 24, 2024
2 parents 12a7dce + 51843cc commit 8a0a391
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 22 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 44 additions & 20 deletions examples/zkapps/02-private-inputs-and-hash-functions/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,49 @@
# Mina zkApp: 02 Private Inputs And Hash Functions

This template uses TypeScript.

## How to build

```sh
npm run build
```

## How to run tests

```sh
npm run test
npm run testw # watch mode
```

## How to run coverage

```sh
npm run coverage
```
This Private Inputs and Hash Functions tutorial helps you to learn about private inputs, hash functions, and adding a second value as an input.

## Version
- o1js: **0.15.2**

## Tutorial

For the step-by-step tutorial, see [Tutorial 2: Private Inputs and Hash Functions](https://docs.minaprotocol.com/zkapps/tutorials/private-inputs-hash-functions).

## How to install and run this example project

1. Clone the repository:
```sh
git clone https://github.com/o1-labs/docs2.git
```
2. Change directory to the project location:
```sh
cd docs2/examples/zkapps/02-private-inputs-and-hash-functions
```
3. Install dependencies:
```sh
npm install
```

4. Build the project:
```sh
npm run build
```

5. Run the compiled code:
```sh
node build/src/main.js
```
To run and build the compiled code with a single command:
```sh
npm run build && node build/src/main.js
```

## Expected output
![02output](02output.png)

## Last audit date

**20-January-2024**

## License

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"typescript": "^4.7.2"
},
"peerDependencies": {
"o1js": "0.15.1"
"o1js": "0.15.*"
}
}

1 comment on commit 8a0a391

@vercel
Copy link

@vercel vercel bot commented on 8a0a391 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs2 – ./

docs.minaprotocol.com
docs2-minadocs.vercel.app
docs2-git-main-minadocs.vercel.app

Please sign in to comment.