mohab 9ab936d960 [script/research/crypsinous] update docs преди 4 години
..
ouroboros f9aa5fb20e [script/research/crypsinous] added crypsinous research notes преди 4 години
zerocash 53938b8e64 [script/research/crypsinous] fix typo in notes преди 4 години
zk 53938b8e64 [script/research/crypsinous] fix typo in notes преди 4 години
README.md 9ab936d960 [script/research/crypsinous] update docs преди 4 години
README.pdf 9ab936d960 [script/research/crypsinous] update docs преди 4 години

README.md

this is an effort to break down the building blocks of crypsinous blockchain

Crypsinous blockchain

Crypsinous Blockchain is built on top of Zerocash sapling scheme, and Ouroboros Genesis blockchain. Each part $Up$ stores it's own local view of the Blockchain $C{loc}^{Up}$. $C{loc}$ is a sequence of blocks $Bi$ (i>0), where each $B \in C{loc}$ $$ B = (tx{lead},st)$$ $$tx{lead} = (LEAD,st\overrightarrow{x}{ref},stx{proof})$$ $st\overrightarrow{x}{ref}$ it's a vector of $tx{lead}$ that aren't yet in $C{loc}$. $stx{proof}=(cm_{\prime{c}},snc,ep,sl,\rho,h,ptr,\pi)$ the Blocks' $\emph{st}$ is the block data, and $\emph{h}$ is the hash of that data. the commitment of the newly created coin is: $(cm{\prime{c}},r_{\prime{c}})=COMM(pk^{COIN}||\tau||vc||\rho{\prime{c}})$, $\tau$ is the clock current time. \emph{$sn_c$} is the coin's serial number revealed to spend the coin. $$snc=PRF{root_{sk}^{COIN}}^{sn}(\rhoc)$$ $$\rho=\eta^{sk{sl}^{COIN}}$$ $\eta$ is is from random oracle evaluated at $(Nonce||\eta_{ep}||sl)$, $\rho$ is the following epoch's seed. $\emph{ptr}$ is the hash of the previous block, $\pi$ is the NIZK proof of the LEAD statement.

LEAD statement

for $x=(cm_{c2},sn{c1},\eta,sl,\rho,h,ptr,\mu{\rho},\mu{y},root)$, and $w=(path,root{sk^{COIN}},path_{sk^{COIN}},\tau_c,\rhoc,r{c1},v,r{c2})$ for tuple $(x,w) \in L{lead}$ iff:

  • $pk^{COIN} = PRF{root{sk}^{COIN}}^{pk}(\tau_c)$.
  • $\rho_{c2}=PRF{root{sk{c1}}^{COIN}}^{evl}(\rho{c_1})$.
  • $\forall i \in {1,2} : DeComm(cm_{ci},pk^{COIN}||v||\rho{ci},r{c_i})=T$.
  • \emph{path} is a valid Merkle tree path to $cm_{c_1}$ in the tree with the root \emph{root}.
  • \emph{$path_{sk^{COIN}}$} is a valid path to a leaf at position $sl-\tauc$ in a tree with a root $root{sk}^{COIN}$.
  • $sn_{c1}= PRF{root{sk}^{COIN}}^{sn}(\rho{c_1})$
  • $y = \mu{y}^{root{sk_{c_1}}^{COIN}||\rho_c}$
  • $\rho = \mu{\rho}^{root{sk_{c_1}}^{COIN}||\rho_c}$
  • $y< ord(G)\phi_f(v)$

spend proof

transfer proof

Performance

since Crypsinous is based of sapling scheme, the performance relative to zerocash sapling scheme is that number of constraints in the PRF is improved by replacing sha256 (83,712 constraints) by pederson commitment (2,542 constraints), but on the other hand the proving take twice that of the sapling.

Appendix

PRF

pseudo random function $f(x)$ is defined as elliptic curve encryption over the group $$ of random output as \emph{elligator} curves of poseidon hash H

$PRF^{sn}$:

$$ PRF^{sn}{root{sk}^{COIN}}(x)= H(x||0b00)^{root_{sk}^{COIN}}$$

$PRF^{pk}$:

$$ PRF^{pk}{root{sk}^{COIN}}(x)= H(x||0b01)^{root_{sk}^{COIN}}$$

$PRF^{evl}$:

$$ PRF^{evl}{root{sk}^{COIN}}(x)= H(x||0b10)^{root_{sk}^{COIN}}$$

$root^{COIN}_{sk}(\tau)$

the root in the merkle tree of the current epoch's coins secret keys, at the onset of the epoch, the initial slot's coin's secret key

Comm,DeComm

the equivocal commitment $(cm,r) \leftarrow Comm(m)$, while the de-commitment is $DeComm(cm,m,r)\rightarrow True$ if it verifies. the commitment can be implemented as blinded encryption of m, as follows $$mG_1 + rG_2$$

for random groups $G_1$, $G_2$, or as $PRF_{r}^{comm}(m)$
$$ PRF^{comm}_{r}(m)= H(m||0b11)^{r}$$

references

https://eprint.iacr.org/2018/1132.pdf