Security

A wallet only your user can sign with.

How Candela holds keys, what it can and cannot do, and where the risks are. Plain language first, with the technical details one click away.

  • 2-of-3 Shamir key split
  • Audited secret-sharing library
  • Independent audit planned before mainnet

The trust model

Three shares, three places. Any two open the wallet.

When a user signs up, a fresh 24-word Alephium key is created inside the Candela window and split with Shamir secret sharing. One share alone is random noise. Two rebuild the key, for one signature, inside that window.

Your wallet keyAny 2 of 3 shares rebuild it
Share 1Device share

Kept in your browser, on Candela’s own origin.

Never leaves your device.

Share 2Auth share

Kept by the Candela server.

Released to the Candela window after you sign in.

Share 3Recovery share

Held by a separate recovery service, a hardware enclave in production.

Released only after a fresh sign-in, to set up a new device.

The wallet key is split into three shares: a device share in the browser, an auth share on the Candela server, and a recovery share in a separate recovery service. Any two rebuild the key; one alone reveals nothing.

Who holds what

You, on your deviceDevice + auth after sign-inSign, after confirming in the Candela window
You, on a new deviceAuth + recovery after a fresh sign-inRebuild, then re-split into new shares
Candela serverAuth share onlyCannot sign or move funds
The dAppNo share at allCan only ask; you decide in the Candela window

Plain language

What Candela and dApps can and cannot do.

Self-custody means the people running the service cannot spend your money. Here is the exact line.

Candela (our server)

Can

  • Know the email or social account a user signs in with
  • Store one share per wallet, the auth share
  • Release that share to the Candela window after sign-in
  • Refuse service (for example during an outage)

Cannot

  • Sign a transaction or a message
  • Move, freeze or recover funds by itself
  • Replace or delete a user’s shares: every share update must be signed with the user’s own key
  • Read the seed phrase

The dApp

Can

  • See the address and public key after the user connects
  • Ask for a transfer, a contract call or a message signature
  • Receive signatures and transaction ids the user approved

Cannot

  • Touch a key share or the seed phrase
  • Sign anything without a confirmation in the Candela window
  • Style, hide or click inside that window: it is a separate top-level window, never an iframe
  • Ask for blind signing of a raw hash

Every signature, confirmed

Signed on Candela's own origin, decoded from the exact bytes.

Every request opens the Candela window. The transaction is decoded locally with Alephium's own codec, and the hash that gets signed is recomputed from those same bytes. What the user sees is what the user signs.

  • The site asking, as verified by the browser, not as the app describes itself
  • A headline in plain words: "Send 1.25 ALPH", "Use an app", "Create a smart contract"
  • Each recipient, flagged as an external address, an app contract or yourself
  • For contract calls, the most the app can spend
  • The network fee and the total that can leave the wallet
  • Warnings for unusual cases, like more than half the balance or tokens leaving

The Confirm button arms after a short delay, so a click aimed at the dApp can never land on it. Blind signing and messages that are really disguised transactions are refused outright.

Lost device

Lose the laptop, keep the wallet.

No seed phrase to dig out and no password to remember. Recovery is a sign-in.

  1. 1

    Sign in on the new device

    With the same email, Google, X or Discord account. The new browser has no device share yet.

  2. 2

    The recovery share is released

    The separate recovery service releases it only after this fresh sign-in. Requests are rate-limited and logged in the user’s activity.

  3. 3

    The key is rebuilt and checked

    The Candela window combines the auth and recovery shares and verifies the result against the wallet’s registered public key.

  4. 4

    Everything is re-split

    A brand-new set of three shares replaces the old one. The share left on the lost device no longer matches anything.

Same address, same funds. And if Candela ever disappears, a user who exported the 24-word phrase can open the wallet in the official Alephium wallets without us.

Threat model

What could go wrong, and what stops it.

A summary of who could attack a Candela wallet, what they would get, and the risk that remains. We would rather tell you than have you find out.

A malicious or hacked dApp

What they get
The user’s address, and the ability to ask for signatures.
What protects the user
Every request needs a confirmation decoded from the signed bytes, in a window the dApp cannot control. No raw-hash signing.
Remaining risk
A user who approves a clearly described harmful contract call.

A phishing site posing as a known dApp

What they get
The same as above, under its own domain.
What protects the user
The Candela window puts the browser-verified domain first and says that the app name was given by its developer. Approvals are per domain. A sign-in message meant for another site is refused.
Remaining risk
A user who does not check the domain. A verified-dApp registry is on the roadmap.

A breach of the Candela server

What they get
Auth shares, emails and the activity log.
What protects the user
One share per wallet is not enough to sign. Recovery shares live in a separate service, designed to run in a hardware enclave in production.

Takeover of the user’s login (email, Google, X or Discord)

What they get
The ability to sign in as the user.
What protects the user
Recovery needs a fresh sign-in, is rate-limited, emailed and appears in the user’s activity. Email codes allow ten wrong guesses per address per day. Share changes need the wallet key, so an attacker cannot lock the user out by rewriting shares. With the passkey requirement on, a login alone restores nothing.
Remaining risk
As with every social-login wallet, the login is the front door. Users should protect it with two-factor authentication.

A stolen, unlocked device with a live session

What they get
The device share and a session.
What protects the user
The wallet locks after a while without use (one day by default, down to five minutes): the server then refuses to take part until the user signs in again. Users can also require their passkey for every signature, checked by the server, so the device and the mailbox together are still not enough.
Remaining risk
Without the passkey requirement, a thief who can sign in again, or who acts before the lock, has the use of the wallet. “Sign out everywhere” is on the roadmap.

Compromised Candela code delivery

What they get
Could serve a malicious Candela window at the next sign-in.
What protects the user
The trust anchor of every web-based embedded wallet. Strict content security policy, no third-party scripts, open design.
Remaining risk
Reproducible builds with published hashes are on the roadmap. The seed export is always an exit.

Candela goes offline

What they get
Nothing, but users cannot sign while it is down.
What protects the user
Users who exported their phrase can use the official Alephium wallets at any time.
Remaining risk
A downloadable recovery kit and an offline exit tool are planned before mainnet.

A lying Alephium node

What they get
Could build a different transaction or misreport a simulation.
What protects the user
The confirmation is decoded from the bytes actually signed, not from the node’s description. Simulations are labelled. Contract and function names are shown only for a contract whose code on chain matches what the app published.

Honest caveats

Self-custodial, with two things stated.

Every web-based embedded wallet shares these. We would rather say them out loud.

1

Code trust

Users trust the Candela window code we serve each time they use it. Strict CSP, no third-party scripts and reproducible builds (planned) reduce that trust, and the seed export lets users leave at any time.

2

Availability

Until the recovery kit ships, a user who never exported the phrase needs Candela to be online to sign. Funds are never lost by an outage, but they can wait for it to end.

Status: testnet beta

The secret-sharing library is audited by Cure53 and Zellic. The way Candela combines it, the Candela window and the server are not audited yet. An independent audit and a bug bounty are planned before mainnet.

Found a vulnerability?

Please tell us privately before disclosing it publicly, so we can fix it before anyone is put at risk.

Self-custody your users never have to think about.

Create an app in the dashboard, add two components, and your Alephium dApp onboards people with an email. Free during beta.