2025-10-02 17:59:57 +02:00
# Contributor's Guide
2026-01-19 14:54:26 +01:00
## Triggering a New Release for Logos Blockchain Circuits
2025-10-02 17:59:57 +02:00
To trigger a release build:
2025-10-06 15:02:48 +02:00
1. Create and push a tag in the format `vX.Y.Z` .
2025-10-02 17:59:57 +02:00
2. This will automatically trigger the `.github/workflows/build_circuits.yml` workflow.
3. Once the workflow finishes, the generated artifacts will be attached to a new release.
> Currently, releases published this way are marked as **Draft** and **Pre-Release** to ensure that the changelog and pre-release steps are manually reviewed first.
2025-10-30 15:22:19 +04:00
### Generated Artifacts
2025-11-03 16:47:52 +04:00
Each release includes a single unified bundle per platform:
2025-10-30 15:22:19 +04:00
2025-11-03 16:47:52 +04:00
#### Unified Release Bundles
2025-10-30 15:22:19 +04:00
For each supported platform (Linux x86_64, macOS aarch64, Windows x86_64):
2026-01-19 14:54:26 +01:00
- **`logos-blockchain-circuits-{version}-{os}-{arch}.tar.gz` **
2025-10-30 15:22:19 +04:00
2025-11-03 16:47:52 +04:00
A complete bundle containing all components needed to generate and verify proofs for all circuits.
2025-10-30 15:22:19 +04:00
2025-11-03 16:47:52 +04:00
**Bundle Structure:**
2025-10-30 15:22:19 +04:00
2025-11-03 16:47:52 +04:00
```
2026-01-19 14:54:26 +01:00
logos-blockchain-circuits-{version}-{os}-{arch}/
2025-11-03 16:47:52 +04:00
├── VERSION
2025-11-04 15:21:55 +04:00
├── prover[.exe]
├── verifier[.exe]
2025-11-03 16:47:52 +04:00
├── pol/
│ ├── witness_generator[.exe]
│ ├── witness_generator.dat
│ ├── proving_key.zkey
│ └── verification_key.json
├── poq/
│ ├── witness_generator[.exe]
│ ├── witness_generator.dat
│ ├── proving_key.zkey
│ └── verification_key.json
├── zksign/
│ ├── witness_generator[.exe]
│ ├── witness_generator.dat
│ ├── proving_key.zkey
│ └── verification_key.json
└── poc/
├── witness_generator[.exe]
├── witness_generator.dat
├── proving_key.zkey
└── verification_key.json
```
2025-10-30 15:22:19 +04:00
2025-11-04 15:21:55 +04:00
At the root level:
- **prover**: Rapidsnark prover binary for generating zk-SNARK proofs
- **verifier**: Rapidsnark verifier binary for verifying proofs
2025-11-03 16:47:52 +04:00
Each circuit directory contains:
- **witness_generator**: Compiled C++ binary for generating witnesses from inputs
- **witness_generator.dat**: Required data file for the witness generator
- **proving_key.zkey**: Groth16 proving key for generating zk-SNARK proofs
- **verification_key.json**: Verification key for verifying proofs
2025-10-30 15:22:19 +04:00
2025-11-03 16:47:52 +04:00
The proving keys are generated using the Hermez Powers of Tau ceremony (`powersOfTau28_hez_final_17.ptau` ), which supports circuits with up to 2^17 constraints.
2025-10-30 15:22:19 +04:00
2025-10-02 17:59:57 +02:00
### Example
```bash
2025-10-06 15:02:48 +02:00
git tag v1.2.3 -m "Release v1.2.3"
2025-10-02 17:59:57 +02:00
git push --tags
```
## Publishing the Release
After triggering the release, it will appear as a **Draft** and **Pre-Release** .
Before making it public, make sure to:
1. **Review the changelog**
Ensure that all relevant changes are clearly listed and properly formatted.
2. **Confirm the pre-release checklist**
Verify that all required steps have been completed, then remove the checklist from the release notes.
Once everything looks good:
3. **Mark the release as published**
- Uncheck ** “This is a pre-release.”**
- Publish the release (removing the Draft state).
2026-01-19 14:54:26 +01:00
> ⚡ **Important:** Logos Blockchain builds will only pick up the new circuits once the release is published as **Latest** (i.e. not marked as draft or pre-release).
2025-10-02 17:59:57 +02:00