Skip to main content

Crate pxp

Crate pxp 

Source
Expand description

Client platform side of the FIDO Proximity Exchange Protocol (PXP), formerly the CTAP hybrid transport (caBLE).

PXP covers invocation (QR code or state-assisted), proximity proof over a BLE advertisement, channel negotiation (WebSocket tunnel or BLE L2CAP), the Noise handshake, and the encrypted message exchange. CTAP messages are carried as opaque frames. The only CTAP this crate knows is what PXP itself requires: the getInfo command byte and the getInfo response structure. libwebauthn builds its hybrid transport on top.

See https://fidoalliance.org/specs/hybrid/.

Modules§

advertisement
error
Errors specific to the caBLE / hybrid transport.
known_devices
qr_code_device
tunnel
WebSocket tunnel-server transport for the caBLE hybrid protocol.

Structs§

TunnelHandle
A running PXP connection. Dropping it aborts the connection task.

Enums§

ConnectTarget
The CMHD to connect to.
ConnectionState
PxpUpdate

Traits§

UpdateSink
Receives connection progress updates from the connection task.

Functions§

connect
Spawns the connection task for target. Progress is reported to updates; CTAP frames are exchanged through the returned handle once connected.
digit_encode