An approximate introduction to how zk-SNARKs are possible (Vitalik Buterin)
https://vitalik.ca/general/2021/01/26/snarks.html
Zk-SNARKs: Under the Hood (Vitalik Buterin)
https://medium.com/@VitalikButerin/zk-snarks-under-the-hood-b33151a013f6
An approximate introduction to how zk-SNARKs are possible (Vitalik Buterin)
https://vitalik.ca/general/2021/01/26/snarks.html
Zk-SNARKs: Under the Hood (Vitalik Buterin)
https://medium.com/@VitalikButerin/zk-snarks-under-the-hood-b33151a013f6
| package ec | |
| import ( | |
| "crypto/ecdsa" | |
| "crypto/elliptic" | |
| "crypto/md5" | |
| "crypto/rand" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "errors" |
| # Generate the private and public keys | |
| openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > key | |
| # Extract the public key and remove the EC prefix 0x04 | |
| cat key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub | |
| # Extract the private key and remove the leading zero byte | |
| cat key | grep priv -A 3 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^00//' > priv | |
| # Generate the hash and take the address part |
| git checkout <branch> | |
| git fetch <other-fork-alias> | |
| git cherry-pick <commit-hash> | |
| git push <your-fork-alias> |