pub trait CBORCommand: Serialize + Sized {
    type Response: CBORResponse;

    const CMD: u8;
    const HAS_PAYLOAD: bool = true;

    fn cbor(&self) -> Result<Vec<u8>, Error> { ... }
    fn to_short_apdus(&self) -> Result<Vec<ISO7816RequestAPDU>, Error> { ... }
    fn to_extended_apdu(&self) -> Result<ISO7816RequestAPDU, Error> { ... }
}

Required Associated Types

Required Associated Constants

CTAP comand byte

Provided Associated Constants

If true (default), then the command has a payload, which will be serialized into CBOR format.

If false, then the command has no payload.

Provided Methods

Converts a CTAP v2 command into a binary form.

Converts a CTAP v2 command into a form suitable for transmission with short ISO/IEC 7816-4 APDUs (over NFC).

Converts a CTAP v2 command into a form suitable for transmission with extended ISO/IEC 7816-4 APDUs (over NFC).

Implementors