# Simplifying Passkey Implementation with Opaque Records and a Go API

Original title: Opaque, Interoperable Passkey Records (and a Go API)

> Hacker News story 48985956 · language: en · submitted 2026-07-20
> Web version: https://zeli.app/story/48985956
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 54 · by [gnabgib](<https://news.ycombinator.com/user?id=gnabgib>) · 💬 11
[original](<https://words.filippo.io/passkey-record/>) · [HN discussion](<https://news.ycombinator.com/item?id=48985956>)

## Summary

I propose a new interoperable format for storing passkey records as opaque strings, similar to password hashes, to simplify server-side implementation. This approach abstracts complex WebAuthn details, allowing developers to manage credentials more easily while preserving the ability to switch libraries or backend languages. I also share a draft stateless Go API designed to streamline both registration and login flows using this standardized record format.

## Key quote

> Don't let the attacker dictate your PRIMARY KEY and you won't have PRIMARY KEY collision attacks.

## HN discussion (11 comments)

### [deathanatos](<https://news.ycombinator.com/item?id=48987260>)

> From the linked spec,
>
> \> The authenticator data is a CBOR structure defined in the WebAuthn Level 3 specification, is returned by the getAuthenticatorData() method of the AuthenticatorAttestationResponse
>
> From TFA,
>
> \> The payload is the authenticator data, a CTAP2 CBOR encoding of most of the credential record fields that is already specified by WebAuthn
>
> Both link to the same section of the WebAuthn spec, §6.1 Authenticator Data[1]. Unless I'm missing something, that section is describing a custom binary format, not a CBOR encoding of data. (Though n.b. that one of the items contained by the outer custom binary format is CBOR, but the 37(ish) byte array itself is not CBOR.)
>
> (…and it's stuff like that that just makes all of WebAuthn so impenetrable.)
>
> [1]: https://www.w3.org/TR/webauthn-3/#sctn-authenticator-data

### [AppAttestationz](<https://news.ycombinator.com/item?id=48998736>)

> Wondering how webauthn extensions will fit into this.
>
> PRF for example, takes salts as inputs, if extensions are taken into consideration then it would need to capture input & client extension results too.

### [HAL3000](<https://news.ycombinator.com/item?id=48992766>)

> Having this in the Go standard library would be great. We are currently looking into implementing passkeys in our system using Go, is there any battle tested library?

---

## Cite

- Page: https://zeli.app/story/48985956
- Date: 2026-07-20
- Source: words.filippo.io (https://words.filippo.io/passkey-record/)
- Hacker News: https://news.ycombinator.com/item?id=48985956

## Other languages

- zh: https://zeli.app/zh/story/48985956 · markdown: https://zeli.app/zh/story/48985956.md
- ja: https://zeli.app/ja/story/48985956 · markdown: https://zeli.app/ja/story/48985956.md
- ko: https://zeli.app/ko/story/48985956 · markdown: https://zeli.app/ko/story/48985956.md
- de: https://zeli.app/de/story/48985956 · markdown: https://zeli.app/de/story/48985956.md
- es: https://zeli.app/es/story/48985956 · markdown: https://zeli.app/es/story/48985956.md
