# Cross-Platform Test Vectors

Deterministic test vectors generated by the Rust CDK (source of truth) and
validated by all SDK implementations to ensure cross-platform compatibility.

## Files

- `crypto-vectors.json` — mnemonic derivation, Ed25519 signing, base58 encoding
- `bincode-vectors.json` — serialization of primitives, collections, structs, enums
- `encryption-vectors.json` — HPKE constants, RexValue Borsh serialization

## Generation

Vectors are written by `cargo test -p rialo-rs-cdk` (see `tests/generate_vectors/`).

## Consumers

- **Rust CDK**: `tests/validate_vectors.rs` validates against these vectors.
- **TypeScript CDK**: `tests/*-vectors.test.ts` (runs as part of `npm test`).
