arnaucube 9a50ec9e43 | 1 year ago | |
---|---|---|
.github/workflows | 2 years ago | |
client | 1 year ago | |
cmd | 1 year ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 1 year ago | |
batch_contribution_10.json | 2 years ago | |
compile.sh | 2 years ago | |
current_state_10.json | 2 years ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
parsers.go | 2 years ago | |
parsers_test.go | 2 years ago | |
powersoftau.go | 1 year ago | |
powersoftau_test.go | 1 year ago |
Alternative (non-official) implementation in Go of the contributor for the Ethereum KZG Trusted Setup Ceremony.
The purpose of this repo is to use it to contribute to the upcoming Ethereum KZG Trusted Setup Ceremony, without using the official implementation.
The Ceremony is considered safe as long as there is at least one honest participant, with the idea that if you participate, assuming that you consider yourself honest, you can consider the Ceremony safe. Ethereum will run the Ceremony which will be used at least in EIP-4844.
Probably most of the contributions will be generated with the same code (official impl, which has been audited). The idea of this repo is to try to bring more diversity to the table with another independent implementation.
This implementation has been done without looking at the other impls code (except for the point parsers test vectors), in order to not be biased by that code.
This code has not been audited, use it at your own risk.
Why in Go? Ideally would have done this code using Rust & arkworks, but the official impl already uses that. This implementation uses Kilic's BLS12-381 pairing implementation.
Documents used for this implementation:
You can find more info on the logic behind the powers of tau computation & verification in these notes: http://arnaucube.com/blog/powersoftau.html
Get the binary from the releases (alternative you can compile it from source), and run:
> ./kzgceremony
eth-kzg-ceremony-alt
====================
Usage of ./kzgceremony:
-u, --url string sequencer url (default "https://seq.ceremony.ethereum.org")
-r, --rand string randomness, needs to be bigger than 64 bytes
-s, --sleeptime uint time (seconds) sleeping before trying again to be the next contributor (default 30)
So for example, run your contribution with:
./kzgceremony -r "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod"
(where the "Lorem ipsum..." is your source of randomness)