-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
88 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 第 2 课 练习 | ||
|
||
[Mina CTF](https://minactf.xyz/) 是一个学习 Mina 使用方法的很好的网站,里面涵盖了 ZKP 的各种基础功能,以下练习基于该项目给出。 | ||
|
||
## Check in | ||
|
||
这是最基本的 Mina 合约,可以让你快速的熟悉整个 Mina 合约的开发环境,了解我们的任务。 | ||
|
||
## Prime | ||
|
||
这个题目看起来有点奇怪,我们需要找到两个不等于 1 的数字相乘等于一个素数,这个可能吗?试试看吧! | ||
|
||
## Maze | ||
|
||
从这个题目开始,就有一点难度了,题目就是要让你走迷宫,但是迷宫在哪里,我要怎么走? | ||
|
||
看看你能挑战成功吗? |
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,17 @@ | ||
# 第 4 课 练习 | ||
|
||
## Halo2 基本应用 - 成员证明 | ||
|
||
利用 Halo2 的基本 API 尝试完成成员证明的工作 ---- 对于承诺的成员小组,我可以证明我属于他们。 | ||
|
||
## Halo2 基本逻辑 - 判零及分支 | ||
|
||
我们需要实现以下简单的逻辑: | ||
|
||
``` | ||
if a > b { a - b } else { c }; | ||
``` | ||
|
||
## Halo2 高级应用 - 压缩 Poseidon 函数 | ||
|
||
你是否可以将现有的 Poseidon 函数减少列去实现? |
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,22 @@ | ||
# 第 6 课 练习 | ||
|
||
## 补充完整代码实现 STARK | ||
|
||
根据提供的 jupyter notebook,将代码补充完整,使得整个 STARK 流程完整可证明和验证。 | ||
|
||
## 证明 $a_{n+2}=a_{n+1}^3+a_{n}$ | ||
|
||
改变证明的内容,将公式改为:$a_{n+2}=a_{n+1}^3+a_{n}$ | ||
|
||
## 实现 Brainfuck 虚拟机 | ||
|
||
参考以下资料实现 Brainfuck 虚拟机 | ||
|
||
- https://aszepieniec.github.io/stark-brainfuck/ | ||
- https://neptune.cash/learn/brainfuck-tutorial/ | ||
|
||
并尝试执行以下示例程序: | ||
|
||
``` | ||
++>,<[>+.<-] | ||
``` |
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,7 @@ | ||
# 第 8 课 练习 | ||
|
||
## 实现基本的递归零知识证明 | ||
|
||
|
||
|
||
## 实现有先后关系的递归零知识证明 |
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