<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BunHead</title>
    <description>The latest articles on DEV Community by BunHead (@bunhead1978_ee831c3ffab2c).</description>
    <link>https://dev.to/bunhead1978_ee831c3ffab2c</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3880745%2F24641910-8c44-4abe-ace0-2720633b2fa9.jpg</url>
      <title>DEV Community: BunHead</title>
      <link>https://dev.to/bunhead1978_ee831c3ffab2c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bunhead1978_ee831c3ffab2c"/>
    <language>en</language>
    <item>
      <title>I built a browser-based proof-of-presence tool</title>
      <dc:creator>BunHead</dc:creator>
      <pubDate>Wed, 15 Apr 2026 15:20:01 +0000</pubDate>
      <link>https://dev.to/bunhead1978_ee831c3ffab2c/i-built-a-browser-based-proof-of-presence-tool-11gj</link>
      <guid>https://dev.to/bunhead1978_ee831c3ffab2c/i-built-a-browser-based-proof-of-presence-tool-11gj</guid>
      <description>&lt;p&gt;Six months of tinkering produced IRLid — two people meet, scan each other's QR codes, get a cryptographically signed receipt proving co-location within 12 metres. No app, no accounts, no biometrics, no central server. Just ECDSA P-256 and a bit of GPS, running entirely in the browser via Web Crypto API.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 4am Bug
&lt;/h2&gt;

&lt;p&gt;Shipped v3 last week. Thought it was done. Four hours later — every receipt showing 23% verified instead of 100%.&lt;/p&gt;

&lt;p&gt;Root cause: GPS coordinates were being stripped server-side before returning to the client. But the ECDSA signature was computed &lt;em&gt;with&lt;/em&gt; those coordinates. Strip them → client can't recompute the original hash → signature check fails. Every. Single. Receipt.&lt;/p&gt;

&lt;p&gt;Obvious in hindsight. Not obvious at 4am.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Deeper Lesson: Canonical Serialisation
&lt;/h2&gt;

&lt;p&gt;Moved from JSON.stringify() to canonical() for payload hashing before ECDSA signing. JSON property order isn't guaranteed across environments — same object, different hash, broken signature.&lt;/p&gt;

&lt;h2&gt;
  
  
  New: Embeddable Widget
&lt;/h2&gt;

&lt;p&gt;Any site can embed IRLid as a human-verification step — one iframe, postMessage API, no SDK. Think reCAPTCHA but you prove you've met a real human. Demo: &lt;a href="https://irlid.co.uk/demo-login.html" rel="noopener noreferrer"&gt;https://irlid.co.uk/demo-login.html&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest Limitations
&lt;/h2&gt;

&lt;p&gt;GPS is self-reported. Cooperative trust model only — not proof-of-presence to a sceptical third party. Documented honestly in PROTOCOL.md on GitHub.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://irlid.co.uk" rel="noopener noreferrer"&gt;https://irlid.co.uk&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>security</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
