https://github.com/ethereum/kzg-ceremony-sequencer
https://github.com/ethereum/kzg-ceremony-sequencer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethereum/kzg-ceremony-sequencer
- Owner: ethereum
- License: mit
- Created: 2022-09-09T17:17:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T01:35:19.000Z (over 1 year ago)
- Last Synced: 2025-01-15T15:50:09.516Z (4 months ago)
- Language: Rust
- Size: 734 KB
- Stars: 85
- Watchers: 11
- Forks: 27
- Open Issues: 17
-
Metadata Files:
- Readme: Readme.md
- Changelog: Changelog.md
- License: mit-license.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-ethereum-rust - KZG Ceremony Sequencer
README
# KZG Ceremony Rest API

[](https://deps.rs/repo/github/ethereum/kzg-ceremony-sequencer)
[](https://codecov.io/gh/ethereum/kzg-ceremony-sequencer)
[](https://github.com/ethereum/kzg-ceremony-sequencer/actions/workflows/build-test-deploy.yml)This implements [KZG Ceremony Specification](https://github.com/ethereum/kzg-ceremony-specs).
The latest build is available as a container on [ethereum/kzg-ceremony-sequencer](https://hub.docker.com/repository/docker/ethereum/kzg-ceremony-sequencer/general):
```shell
docker run ethereum/kzg-ceremony-sequencer:latest
```## Setup
### Build, lint, test, run
```shell
cargo fmt && cargo clippy --workspace --all-targets --all-features && cargo build --workspace --all-targets --all-features && cargo test --workspace --all-targets --all-features && cargo run -- -vvv
```## Requirements
- OAuth Client App : Currently we require users to sign in with either Ethereum or Github, which requires an OAuth client application that the user gives read access to their profile to.
## Live URL
-
## Registering for GitHub OAuth
Register for Github OAuth access [here](https://github.com/settings/developers).
## Registering for Sign-in-with-Ethereum
See the documentation [here](https://docs.login.xyz/servers/oidc-provider/hosted-oidc-provider).
To register, use the REST API:
```shell
curl -X POST https://oidc.signinwithethereum.org/register \
-H 'Content-Type: application/json' \
-d '{"redirect_uris": ["http://127.0.0.1:3000/auth/callback/eth", "https://kzg-ceremony-sequencer-dev.fly.dev/auth/callback/eth"]}'
``````json
{
"client_id": "9b49de48-d198-47e7-afff-7ee26cbcbc95",
"client_secret": "...",
"registration_access_token": "....",
"registration_client_uri": "https://oidc.signinwithethereum.org/client/9b49de48-d198-47e7-afff-7ee26cbcbc95",
"redirect_uris": [
"http://127.0.0.1:3000/auth/callback/eth",
"https://kzg-ceremony-sequencer-dev.fly.dev/auth/callback/eth"
]
}
``````shell
fly secrets set ETH_RPC_URL="..."
fly secrets set ETH_CLIENT_ID="..."
fly secrets set ETH_CLIENT_SECRET="..."
fly secrets set GH_CLIENT_ID="..."
fly secrets set GH_CLIENT_SECRET="..."
fly volumes create kzg_ceremony_sequencer_dev_data --size 5
```* Fly server:
* Fly dashboard: