# Contributing to `Ridge-Lab/moonmls`

Thank you for your interest in contributing to `moonmls`!

## Development Prerequisites

- MoonBit toolchain `>= 1.0.0-rc1` (CI pins `moonc v1.0.0-rc1+3c0520448`)
- Node.js `>= 20` (for CLI, IETF test-vector runner, benchmarks, and Browser TreeKEM Studio tests)
- Python `>= 3.10` (for `scripts/verify.py`)

## Before Opening a Pull Request

1. Format code and refresh generated public interfaces:
   ```bash
   moon fmt
   moon info --target all
   ```
2. Run the unified verification harness:
   ```bash
   python scripts/verify.py --profile full --targets js wasm wasm-gc --fetch-ietf
   python scripts/verify_harness_test.py
   ```
3. Do **not** commit generated artifacts (`_build/`, `work/`, `web/engine.js`, `web/licenses/`) or raw `mlswg/mls-implementations` JSON files (they are fetched on demand into `work/ietf-vectors/`).
4. Ensure all cryptographic and protocol changes include either a targeted MoonBit unit/security test or a new fault-injection check in `scripts/verify_faults.mjs`.

## Licensing

By contributing to `moonmls`, you agree that your contributions will be licensed under the MIT License ([LICENSE](LICENSE)).
