Spartan implementation
$
A,B,C \in \mathbb F^{m \times n}$ and
$x \in \mathbb F^l$ $w \in \mathbb F^{n - l - 1}$
For
pp
$Γ_1 \leftarrow \mathbb G_1^m$ $H_1 \leftarrow \mathbb G_1$ $Γ_2 \leftarrow \mathbb G_2^n$ $H_2 \leftarrow \mathbb G_2$
$r_{rows} \leftarrow \mathbb F^n$ $r_{fin} \leftarrow \mathbb F$ $H_T \leftarrow e(H_1,H_2)$ $V_i \leftarrow Commit_{Pedersen}((Γ_1,H_1);M_{ij},r_{rows,i})$ $C \leftarrow Commit_{AFGHO}((Γ_2,H_T);V,r_{fin})$