Skip to content

Instantly share code, notes, and snippets.

View vio1etus's full-sized avatar
🏠
Working from home

Heyi Zhang vio1etus

🏠
Working from home
  • 19:36 (UTC +08:00)
View GitHub Profile
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";

@vio1etus
vio1etus / cuda_11.3_installation_on_Ubuntu_20.04
Last active May 28, 2022 21:16 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.3 and cuDNN 8.2 installation on Ubuntu 20.04 for PyTorch 1.11
#!/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