Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:fc9c9e31483a83d585de19604c5b5056";
| pragma circom 2.1.4; | |
| include "circomlib/poseidon.circom"; | |
| template Secret2Public () { | |
| signal input sk; | |
| signal output pk; | |
| component poseidon = Poseidon(1); // the input of poseidon hash is the number of variables you want to hash, normally one or two | |
| poseidon.inputs[0] <== sk; |
Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:fc9c9e31483a83d585de19604c5b5056";
Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:1117e8e808bc0519e38ddeba248b7368";
Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:bda8e464326c4c0f865d3c85c6579bfc";
| #!/bin/bash | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ## install tools for lspci, ubuntu-drivers, add-apt-repository |