frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: passkey-go A Go library for streamlined Passkey (WebAuthn) verification

https://github.com/aethiopicuschan/passkey-go
1•aethiopicuschan•3h ago
Hey Hacker News,

I'm thrilled to introduce passkey-go, a new Go library I built to make implementing server-side WebAuthn (Passkey) verification significantly simpler and more robust in your Go applications.

While WebAuthn offers powerful, phishing-resistant authentication, its specification can be quite complex to implement correctly on the server side. My goal with passkey-go was to abstract away the low-level parsing and cryptographic details, providing both a high-level, easy-to-use API for common tasks and the flexibility for more advanced, step-by-step verification.

Here's what passkey-go offers:

Effortless Verification: The VerifyAssertion function provides a single, high-level call to validate authentication responses, handling all cryptographic checks, origin verification, and sign count validation for you.

Flexible Registration: For registration, the library offers clear, sequential steps to parse attestation objects, extract authenticator data, and convert COSE keys to *ecdsa.PublicKey for storage.

Granular Control: If you need more control, you can use the ParseAssertion, ParseClientDataJSON, VerifyAssertionSignature, and CheckSignCount functions to perform verification step-by-step.

Secure by Design: It focuses on handling the core verification logic correctly, ensuring signature validation, challenge matching, and preventing replay attacks through signCount checks.

Clear Error Handling: PasskeyError types help you map common WebAuthn-related issues directly to appropriate HTTP statuses, simplifying API error responses.

Minimalist Design: passkey-go focuses solely on the WebAuthn verification logic. It doesn't dictate how you store challenges or credentials, giving you full control over your user and data management.

ES256 Support: Adheres to WebAuthn recommendations by exclusively supporting ES256 (ECDSA w/ SHA-256) for robust security.

Go-Idiomatic: Designed with Go developers in mind, providing clear function signatures and standard error handling.

This library handles the complex parts of WebAuthn verification, allowing you to integrate secure Passkey authentication quickly without getting bogged down in the spec's intricacies.

You can find the repository and more detailed usage examples here: https://github.com/aethiopicuschan/passkey-go

I'm keen to hear your thoughts, feedback, and any suggestions for future improvements. Feel free to open issues or pull requests on GitHub!

Thanks for checking it out!

GOP Bill Would Legalize Doge and Let Trump Dismantle Everything

https://www.rollingstone.com/politics/politics-features/trump-republican-bill-legalize-doge-dismantle-government-1235354830/
1•doener•1m ago•0 comments

What fully automated firms will look like

https://www.dwarkesh.com/p/ai-firm
1•pramodbiligiri•4m ago•0 comments

US embassy wants 'every social media username of past five years' for new visas

https://www.thejournal.ie/us-visa-changes-6740830-Jun2025/
2•jahnu•6m ago•0 comments

A Brief, Incomplete, and Mostly Wrong History of Electric Vehicles

https://climatedrift.substack.com/p/5539b8e8-7029-46de-bb0c-a3722ecce796
1•chrismatic•6m ago•0 comments

We'd Build the Matrix Today – With FOSS

https://www.gizvault.com/archives/how-we-build-matrix-today-with-foss
2•ricecat•8m ago•0 comments

Can We See Our Future in China's Cameras?

https://www.nytimes.com/2025/06/23/opinion/china-surveillance-cameras.html
1•perihelions•8m ago•0 comments

France's court of auditors estimates $6.8B public spending for 2024 Olympics

https://www.aol.com/news/frances-court-auditors-estimates-6-095725489.html
1•Bluestein•9m ago•0 comments

'It takes 25 years for a footprint to disappear' – the magic of Britain's bogs

https://www.theguardian.com/environment/2025/jun/22/uk-bogs-peatlands-borth-conservation-britain-bogs
1•tiagod•10m ago•0 comments

Using ChatGPT to write essays may be eroding critical thinking skills

https://phys.org/news/2025-06-chatgpt-essays-eroding-critical-skills.html
2•nabla9•10m ago•0 comments

I built my podcast (with AI)

https://letterstome.cc/2025/06/22/how-i-built-my-podcast-with-ai/
1•wiljr•11m ago•0 comments

Should I move to Canada or USA from Africa?

2•kaly_codes•12m ago•0 comments

Where is Iran's uranium? Questions remain over stash of enriched material

https://www.ft.com/content/12a864cc-eeb8-4725-aed8-5ddff9ac588e
8•Traces•14m ago•2 comments

Rust Blender Extension API with Hot Reloading

https://algebraic.games/blog/rust_extension_api/
2•algebraic_ug•16m ago•0 comments

Quick question for platform engineers or DevOps engineers

1•DeborahEmeni_•18m ago•0 comments

Show HN: I built a Résumé tool that helps people land job interviews

https://www.trymockly.ai
1•kaly_codes•22m ago•0 comments

Statement on Smartphone and Social Media Impact on Teen Mental Health

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5256747
2•florg•24m ago•1 comments

Serving Not Selling: Why Management Consultants Shouldn't "Sell"

https://www.forbes.com/sites/andrewbinns/2025/06/23/serving-not-selling-why-management-consultants-shouldnt-sell/
1•Bluestein•25m ago•0 comments

Germany's One-Night Butter Tax Loophole of 1963

https://www.24oranges.nl/2013/08/05/night-of-the-butter-made-german-entrepeneurs-rich-50-years-ago/
1•keiferski•26m ago•0 comments

Applebee's and IHOP Plan to Introduce AI in Restaurants

https://www.wsj.com/articles/applebees-and-ihop-plan-to-introduce-ai-in-restaurants-61770ca5
2•bookofjoe•27m ago•2 comments

Vera Rubin Telescope Scientists Will Deal with 60M Billion Bytes of Imagery

https://www.nytimes.com/2025/06/20/science/vera-rubin-telescope-data.html
2•tosh•28m ago•0 comments

Scientists find clues where to look for missing baryonic matter of the universe

https://www.aanda.org/articles/aa/full_html/2025/06/aa54944-25/aa54944-25.html
1•Propelloni•32m ago•1 comments

Yet another insignificant programming notes

https://chua.bitbucket.io
1•__LINE__•33m ago•0 comments

Show HN: I replicated GRPO and made it one-click runnable on HPC-AI.com

https://hpc-ai.com
19•cheerGPU•34m ago•6 comments

Cool 25.04 – Bringing the Latest in Collaborative Office Productivity

https://www.collaboraonline.com/blog/cool-25-04-release/
2•doener•34m ago•0 comments

Ask HN: Would your company benefit from local LLM development?

1•pyramidihuijari•35m ago•2 comments

AI Driven Digital Marketing: The Future Is Already Here

https://searchenginerealm.com/ai-driven-digital-marketing/
1•jimmiemars•36m ago•0 comments

Alright Medium, the Stats Are Starting to Need Explaining

https://medium.com/luminasticity/alright-medium-the-stats-are-starting-to-need-explaining-6a2f2516acf1
2•bryanrasmussen•40m ago•0 comments

Naspers shifts to an AI-first strategy – and it's paying off

https://techcentral.co.za/naspers-prosus-shift-to-ai-first-strategy/265477/
1•Bluestein•40m ago•0 comments

I built an open-source (AGPLv3), local-first investment portfolio tracker

https://privatefolio.xyz/
1•kernelwhisperer•40m ago•1 comments

AI: Great Expectations (1988) [pdf]

https://people.csail.mit.edu/brooks/idocs/AI_hype_1988.pdf
2•YeGoblynQueenne•40m ago•0 comments