It's a demo of RSA-HLA off-chain prototype. The codes will finish the tasks with keyGen, tagGen, commit, challenge, prove, and verify.
Ubuntu 18.04 g++ 7.3.0
gmp 6.1.2
$sudo apt-get install m4
$lzip d gmp-6.1.2.tar.lz
$tar -xvf gmp-6.1.2.tar
$cd gmp-6.1.2
$./configure --enable-cxx
$make
$make check
$sudo make install
$git clone [URL]
$cd RSA_ZKPoS
$mkdir build
$cmake ..
$make
./rsa_test
- Random oracle H isn't implemented with the current implementation as H(z){ return g1^z mod N }
- If the size of a file isn't the multiple of BLOCKSIZE, there is a need of padding, which is not implemented. Therefore, the size of input files should be of multiple of BLOCKSIZE.