🔒
Privacy by design
Zero-knowledge proofs from government IDs. Verify personhood without revealing identity.
An open standard for proving you're a person, without proving who you are.
import { x511, toHono } from 'x511-tba'
const { verified, verify } = x511({
domain: 'https://mywebsite.com',
basePath: '/x511',
providers: ['self', 'zkpassport'],
disclousures: {
minAge: 18,
},
})
const app = new Hono()
app.mount('/x511', verify)
app.get('/protected', toHono(verified), (c) => {
return c.text("You're in")
})import { x511, toElysia } from 'x511-tba'
const { verified, verify } = x511({
domain: 'https://mywebsite.com',
basePath: '/x511',
providers: ['self', 'zkpassport'],
disclousures: {
minAge: 18,
},
})
new Elysia({ adapter: node() })
.use(html())
.mount('/x511', verify)
.use(toElysia(verified))
.get('/protected', () => "You're in")
.listen(8000, () => {
console.log('Server is running on http://localhost:8000')
})