remoteid 0.2.0

Drone Remote ID (ASTM F3411-22a, EN 4709-002) in pure no_std Rust: decode, encode, track, and judge trust (spoof and plausibility verdicts, DRIP RFC 9575 Ed25519 verification)
Documentation
# Testing

```text
cargo test --all-features
cargo test --no-default-features --lib
cargo test --no-default-features --features verify --lib
cargo build --no-default-features --target thumbv7em-none-eabihf
cargo build --no-default-features --target wasm32-unknown-unknown
```

## Test data

`tests/data` holds three captures from
[opendroneid/wireshark-dissector](https://github.com/opendroneid/wireshark-dissector)
(commit d12670f, Apache-2.0):

| File | Link type | Content |
|---|---|---|
| `odid_wifi_bcn_sample.pcap` | 127 (radiotap) | 21 Wi-Fi Beacons, each with a full message pack |
| `odid_wifi_sample.pcap` | 127 (radiotap) | 21 NAN action frames, 21 Beacons, NAN sync beacons |
| `odid_bt5_lr_sample.pcapng` | 272 (Nordic BLE) | 274 Bluetooth 5 long range packets from an F3411-19 unit, 28 with bad CRC |

## Reference output from the C library

`tests/data/c_reference_messages.jsonl` and `c_reference_packs.jsonl` are
the output of [opendroneid-core-c](https://github.com/opendroneid/opendroneid-core-c)
at commit 849c03a for every message and pack in the captures, made by the
harness in `tools/c-reference/`. To regenerate (Linux or WSL, needs gcc,
git and python3):

```text
bash tools/c-reference/regenerate.sh
```

CI runs the same script and fails if the output differs from the committed
files, so a change in either library shows up.

`tests/c_reference.rs` then requires every field this crate decodes to
match the C value (floats to the printed precision), and every pack to be
accepted or rejected the same way, with the same number of stored messages
per type.

## Trust, DRIP, RIDF and aircraft.json

| Test | What |
|---|---|
| `tests/trust_corpus.rs` | verdicts on the legitimate sample captures and on the spoof corpus, with and without a UTC clock and with fingerprints off (`docs/trust.md` has the table) |
| `tests/drip.rs` | the RFC 9575 Appendix B.2.1 vectors, a Bluetooth 4 stream of them through the tracker, signed chains made with `DripSigner`, tampering, replay, FEC recovery |
| `tests/properties.rs` | proptest: every parser and the trust engine on arbitrary bytes, FEC rebuilding any single lost page, RIDF round trips, geometry |
| `tests/aircraft_json.rs` | the JSON parses and follows the readsb schema; operator position redacted by default |
| `python/tests` | the wheel: decode, verdicts on the same corpora, RIDF, aircraft.json, the RFC example over Bluetooth 4 |

The spoof corpus is regenerated from the spoofers' pinned source by
`tools/spoof-corpus/regenerate.sh` (Linux or WSL, needs python3 with
scapy 2.6.1, gcc and g++); CI fails if it changes. See
`docs/spoof-corpus.md`.

## Fuzzing

```text
cd fuzz
cargo +nightly fuzz run decode
cargo +nightly fuzz run drip
cargo +nightly fuzz run ridf
cargo +nightly fuzz run trust
```

CI runs each target for 60 seconds on every push.

## Python

```text
cd python
pip install maturin pytest
maturin develop --release
pytest tests
```