Altme's documentation
  • ๐ŸงพIntroduction
    • ๐Ÿ“‹What is Self Sovereign Identity ?
    • ๐Ÿ•ต๏ธAltme solution suite is made up of 3 components
      • ๐Ÿ—‚๏ธAltme Wallet
      • ๐Ÿ“‡Altme Saas
      • ๐Ÿ“‡Altme Web3 issuer
    • ๐Ÿ—‚๏ธGive an Identity to your crypto wallet
    • ๐Ÿ› ๏ธTechnical considerations
  • โ˜๏ธAltme Saas
    • Quick start
      • โฌ‡๏ธDownload Altme Wallet from Apple or Google store
      • ๐Ÿ“Get more credentials in your wallet
      • ๐Ÿ”’Connect to the Altme Saas platform to setup a SSI verifier
      • ๐Ÿ“ฒIntegration in your app
    • Beacon integration
      • ๐Ÿ–ฅ๏ธOverview
      • ๐Ÿ…Verify the age of your users (+13, +18) in a dApp
      • ๐Ÿ“ฒReceive the Verifier data with a webhook in your backend
      • ๐Ÿช™On-chain and off-chain access with TezID
      • ๐Ÿ’พVerify other data with other credentials
      • ๐Ÿ“‡Issue a Welcome card in a dApp
      • โœ…Check user data of your Issuer (no code)
      • โœ…Check user data of your Issuer with a webhook
      • ๐Ÿ•ต๏ธUnder the hood : the process flow of a Beacon Verifier
    • OpenID integration
      • ๐Ÿ–ฅ๏ธOverview
      • 1๏ธExample 1 with an โ€œimplicit flowโ€ with no code
      • 1๏ธExample 1 with an โ€œauthorization code flowโ€ in Python
    • EBSII integration
  • ๐Ÿ—‚๏ธAlme Wallet
    • Protocols overview
      • ๐Ÿ”‘Collecting a verifiable credential
      • ๐Ÿ”‘Requesting a verifiable presentation
    • Credential offer protocol
      • ๐Ÿง˜โ€โ™€๏ธMotivation
      • ๐Ÿ“–Issuer implementation
    • ๐Ÿ–ฅ๏ธCredential manifest of the credential offer protocol
    • ๐Ÿ’ฐWallet rendering
      • ๐Ÿ“Input descriptors
    • Presentation request query types
      • ๐Ÿง˜โ€โ™€๏ธMotivation
      • ๐Ÿ“–Verifier implementation
      • ๐Ÿ”DIDAuth
      • QueryByExample
      • QBE Examples
    • โœ…Issuers and Verifiers return codes accepted by wal
    • ๐Ÿ”—Universal link
      • ๐Ÿ–ฅ๏ธAccess from a desktop viewer
      • ๐Ÿ“ฑAccess from smartphone viewer
  • *๏ธOthers
    • ๐Ÿ“‚Flow between wallet, dApp and Verifier
      • ๐Ÿ“ฑHybrid dApp onboards a user with VCs
      • ๐Ÿ“ฑdApp onboards a user with VCs
      • ๐Ÿ“ฑdApp adds a user in whitelist
    • ๐Ÿ“Indices and tables
      • ๐Ÿ“Index
      • ๐Ÿ”Search
    • ๐Ÿ‘จโ€๐Ÿ’ปShow source
Powered by GitBook
On this page
  1. Altme Saas
  2. Beacon integration

Verify the age of your users (+13, +18) in a dApp

PreviousOverviewNextReceive the Verifier data with a webhook in your backend

Last updated 2 years ago

Access to NFT marketplaces is legitimately limited to children. Controlling the age of your users is fundamental. With Altme you have a quick solution that is easy to set up.

Those โ€œcardsโ€ are verifiable credentials and you will need to setup a Verifier to check them.

For that exemple we are going to use the Verifier Over 13 and Over 18 which are available on the Sandbox platform (Beacon Verifier).

After pairing with the wallet, the dApp code to launch that request is simple :

Example of an Over13 check :

  • verifier id : tuaitvcrkl

  • verifier secret : d461d33c-550f-11ed-90f5-0a1628958560

  • TezID proof type : tuaitvcrkl

const signature = await client.requestSignPayload({
      signingType: beacon.SigningType.Raw,
      payload: 'I am over 13 years old#https://talao.co/sandbox/op/beacon/verifier/tuaitvcrkl?id=1234'
           })

Example of an Over18 check

  • verifier id : jvlfopeogt

  • verifier secret : c8f90f24-5506-11ed-b15e-0a1628958560

const signature = await client.requestSignPayload({
      signingType: beacon.SigningType.RAW,
      payload: 'I am over 18 years old#https://talao.co/sandbox/op/beacon/verifier/jvlfopeogt?id=1234'
           })

The user will be asked to prove their age with a credential.

You can set up your own verifiers to receive data and verify your usersโ€™ credentials.

NB : The โ€œidโ€ argument is useful to attach data to a web session or a blockchain address. That address could be for instance the one provided by Beacon after pairing.

Here are the calls to integrate in your dApp through a payload request for signature (both Verifiers are available on ):

โ˜๏ธ
๐Ÿ…
https://talao.co