Skip to content
Snippets Groups Projects
  1. Nov 16, 2016
  2. Nov 14, 2016
  3. Nov 11, 2016
  4. Nov 10, 2016
  5. Nov 09, 2016
  6. Nov 08, 2016
    • akwizgran's avatar
      Merge branch '346-smaller-qr-codes' into 'master' · 138a6e11
      akwizgran authored
      Encode transport properties more compactly in QR codes
      
      The [original BQP spec](https://code.briarproject.org/akwizgran/briar/wikis/BQP) described a compact encoding for transport properties, with the goal of making the QR code as small as possible. At some point during the implementation, I asked @str4d to use TransportIds and TransportProperties instead, as described in the [current spec](https://code.briarproject.org/akwizgran/briar-spec/blob/master/protocols/BQP.md). That was a mistake.
      
      Using the original format reduces the payload from 60 to 34 bytes (43% smaller) for Bluetooth only, and from 96 to 49 bytes (49% smaller) for Bluetooth and LAN. This makes it easier to scan codes from low-resolution screens using fixed-focus and/or low-resolution cameras. Using this branch I can exchange codes between the Sony Xperia Tipo (320x480 screen, fixed focus, 640x480 preview size) and the Huawei Ascend Y300 (480x800 screen, infinity focus, 1280x720 preview size).
      
      This also removes an obstacle to implementing #558, as TransportIds are no longer included in QR codes.
      
      Closes #346.
      
      See merge request !394
      138a6e11
Loading