7 releases (4 breaking)

0.4.0 May 12, 2025
0.3.2 Oct 24, 2024
0.3.0 Aug 1, 2024
0.2.0 Jun 21, 2024
0.0.0-unreleased Apr 25, 2021

#686 in Authentication

Download history 90/week @ 2025-08-11 62/week @ 2025-08-18 53/week @ 2025-08-25 63/week @ 2025-09-01 31/week @ 2025-09-08 66/week @ 2025-09-15 63/week @ 2025-09-22 84/week @ 2025-09-29 34/week @ 2025-10-06 96/week @ 2025-10-13 61/week @ 2025-10-20 38/week @ 2025-10-27 14/week @ 2025-11-03 53/week @ 2025-11-10 34/week @ 2025-11-17 30/week @ 2025-11-24

136 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

125KB
3K SLoC

ctap-types maps the various types involved in the FIDO CTAP protocol to Rust structures consisting of heapless data types.

We currently follow the non-public editor's draft dated 19 March 2019. It still uses FIDO_2_1_PRE to signal new commands, but uses non-vendor API numbering (e.g. 0xA for credential management).

It also contains a lightweight CBOR deserializer, as the existing serde_cbor creates very large code.

The various transport protocols (USB, NFC, BLE) are expected to handle low-level protocol details and deserialize requests / serialize responses, so the authenticator logic is decoupled from these details.

Dependencies

~2–2.9MB
~62K SLoC