# Third-Party Licenses, Dependencies, and Attribution

`Ridge-Lab/moonmls` is licensed under the MIT License (see [LICENSE](LICENSE)).

## Direct Runtime Dependencies

| Package | Version | License | Role in `moonmls` | Bundled License Copy |
| --- | --- | --- | --- | --- |
| [`cc06b/mooncry`](https://mooncakes.io/docs/cc06b/mooncry) | `0.95.0` | Apache-2.0 | Pure-MoonBit cryptographic primitives (SHA-256/512, HMAC, HKDF, AES-GCM, ChaCha20-Poly1305, X25519, X448, P-256, Ed25519, Ed448, ECDSA P-256, RFC 9180 HPKE) | [`licenses/mooncry-LICENSE`](licenses/mooncry-LICENSE) |
| [`moonbitlang/core`](https://github.com/moonbitlang/core) | bundled with `moonc 1.0.0-rc1` | Apache-2.0 WITH LLVM-exception | MoonBit standard library | [`licenses/moonbit-core-LICENSE`](licenses/moonbit-core-LICENSE), [`licenses/moonbit-core-NOTICE`](licenses/moonbit-core-NOTICE) |

## Standards and External Test Vectors

- **IETF RFC 9420**: *The Messaging Layer Security (MLS) Protocol* (R. Barnes, B. Beurdouche, R. Robert, J. Millican, E. Omara, K. Cohn-Gordon, July 2023) — protocol design specification implemented from scratch in MoonBit.
- **IETF MLS Working Group Test Vectors** (`mlswg/mls-implementations`, pinned commit `66e31c515528f7e69c4ad440fcedb733f4b0bf33`):
  - Because `mlswg/mls-implementations` does not publish a standalone OSI license file in its repository root, **none of its JSON vector files are committed to this repository**.
  - Instead, `scripts/verify_ietf_vectors.mjs --fetch` downloads them on demand into the gitignored `work/ietf-vectors/` directory purely for local and CI interoperability verification.

## Browser Distribution Notice

`scripts/build_web.mjs` compiles the MoonBit bridge into `web/engine.js` and copies `LICENSE`, `THIRD_PARTY.md`, `licenses/mooncry-LICENSE`, `licenses/moonbit-core-LICENSE`, and `licenses/moonbit-core-NOTICE` into `web/licenses/`, enforcing exact SHA-256 equality on every build.

## Development Disclosure

Portions of code authoring, test-harness scaffolding, and documentation drafting were performed with AI coding assistance under human architectural direction, code review, and full cryptographic test-vector verification against the 16 official IETF RFC 9420 test-vector suites.
