Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Poseidon spec's sparse-factorization w vector #1278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions content/algorithms/crypto/poseidon.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,14 +698,10 @@ $\overline{\underline{\Function \textsf{sparse\_factorize}(m \typecolon \Zp^{[t
0 & m_{t - 1, 1} & \dots & m_{t - 1, t - 1}
\end{bmatrix} \\~
\\
\line{3} \wb \typecolon \Zp^{[t - 1 {\times} 1]} = \hat{m}_{\ast, 0} = \begin{bmatrix}
\hat{m}_{0, 0} \\
\line{3} \wb \typecolon \Zp^{[t - 1 {\times} 1]} = m_{1 \dotdot, 0} = \begin{bmatrix}
m_{1, 0} \\
\vdots \\
\hat{m}_{t - 2, 0}
\end{bmatrix} = m_{1 \dotdot, 1} = \begin{bmatrix}
m_{1, 1} \\
\vdots \\
m_{t - 1, 1}
m_{t - 1, 0}
\end{bmatrix} \\~
\\
\line{4} \hat\wb \typecolon \Zp^{[t - 1 {\times} 1]} = \hat{m}^{\neg 1} {\times} \hso \wb = \begin{bmatrix}
Expand All @@ -730,7 +726,7 @@ $\overline{\underline{\Function \textsf{sparse\_factorize}(m \typecolon \Zp^{[t
**Algorithm Comments:**\
**Line 1.** $\hat{m}$ is a submatrix of $m$ which excludes $m$'s first row and first column.\
**Line 2.** $m'$ is a copy of $m$ where $m$'s first row and first column have been replaced with $[1, 0, \dots, 0]$.\
**Line 3.** $\wb$ is a column vector which is the first column of $\hat{m}$ or the second column of $m$ excluding the first row's value.\
**Line 3.** $\wb$ is a column vector whose values are the first column of $m$ excluding $m$'s first row.
**Line 4.** $\hat\wb$ is the matrix-column vector product of $\hat{m}^{\neg 1}$ and $\wb$.\
**Line 5.** $m''$ is a sparse matrix whose first row is the first row of $m$, remaining first column is $\hat\wb$, and remaining entries are the identity matrix.

Expand Down