or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Taken from https://hackmd.io/WIobK-QvS3enrzc33PD_2Q?both=, this was written by arnaucube.
R1CS to CCS overview
\(n=n,~ m=m,~ N=N,~ l=l,~ t=3,~ q=2,~ d=2\)
\(M=\{A,B,C\}\), \(S=\{\{0,~1\},~ \{2\}\}\), \(c=\{1,-1\}\)
Then, we can see that the CCS relation:
\[\sum_{i=0}^{q-1} c_i \cdot \bigcirc_{j \in S_i} M_j \cdot z ==0\]
in our R1CS-to-CCS parameters is equivalent to
\[c_0 \cdot ( (M_0 z) \circ (M_1 z) ) + c_1 \cdot (M_2 z) ==0\\ \Longrightarrow 1 \cdot ( (A z) \circ (B z) ) + (-1) \cdot (C z) ==0\\ \Longrightarrow ( (A z) \circ (B z) ) - (C z) ==0\]
which is equivalent to the R1CS relation: \(Az \circ Bz == Cz\)
Sage prototype
The following code implements in Sage the translation of R1CS into CCS by following the description from page 4 of the CCS paper.
To run it:
r1cs-to-ccs.sage
)> sage r1cs-to-ccs.sage