A distributed validator already removes the single key: no one operator can sign alone, and one failure won't slash you. That's Validator Beat's Stage 1.
DVTEE is the next layer. It moves each operator's key share into a confidential VM that the operator's own machine can't look inside. The host can't read the share, can't copy it, and can't talk the signer into a slashable or off-policy signature. The other operators can check which code is holding the share before they trust it.
The piece that does this is dvtee. It's a small Rust BLS signer, built to run in an AMD SEV-SNP
guest, behind the standard Web3Signer API. Charon and your validator
client don't change: you point the VC at a different URL.
flowchart LR
subgraph cluster["A 3-of-4 distributed validator (Stage 1)"]
direction LR
subgraph op0["Operator 0's machine (untrusted host)"]
direction TB
c0[charon] --- vc0[validator client]
vc0 -- "Web3Signer API · mTLS" --> g0
subgraph g0["SEV-SNP guest · measured · sealed disk"]
s0["dvtee<br/>key share 0<br/>slashing DB"]
end
end
op1["Operator 1<br/>charon · VC · share 1"]
op2["Operator 2<br/>charon · VC · share 2"]
op3["Operator 3<br/>charon · VC · share 3"]
c0 -. "p2p consensus,<br/>partial signatures" .- op1 & op2 & op3
end
peers(["other operators,<br/>monitoring"]) -- "attestation report:<br/>which code, which keys, which lock" --> g0
Warning
Experimental. Not for mainnet keys.
- The signer runs in charon clusters on devnets with four validator clients, through Electra, Fulu and Gloas.
- The guest image builds reproducibly but has not booted on SEV-SNP hardware yet. That's the next milestone, together with a Hoodi run.
- It is unaudited.
ROADMAP.md has the full status and the known gaps.
| A Stage 1 DV on its own | With DVTEE |
|---|---|
| A compromised operator machine holds a readable key share. | The share lives only inside the guest, on a disk sealed to the chip and the measured image. The host sees ciphertext. |
| Slashing protection is a file the host can edit, delete or roll back. | Watermarks are kept inside the guest and written before every signature. A start floor from a Roughtime quorum refuses to sign for the past after a restart, so a rolled-back disk can't double-sign. |
| A compromised VC or charon can ask the signer for any signature. | Every signing root is recomputed from the typed request. Fee recipients are pinned to the cluster lock. Exits need a separate role. Gloas builder bids are refused outright. |
| You trust that a peer runs what it says it runs. | GET /api/v1/tee/attestation returns a hardware report binding the code measurement, the TLS key, the BLS shares and the cluster lock hash. dvtee verify-evidence checks it offline, AMD chain included. |
| A lost box is a lost share. | Still a lost share, by design. Nothing exports keys. The cluster replaces or recovers the operator, as it would without a TEE (docs/cluster-edits.md). |
Each guest is one share, not the whole validator. A broken TEE, or a bug in one chip vendor's firmware, costs one share. The cluster threshold still holds. That's why DVTEE leans on the DV for key generation, recovery and image upgrades instead of trusting any single enclave.
- Signs only what it can verify. It never signs a client-supplied 32-byte root.
- Signing roots are cross-checked byte for byte against go-eth2-client with herumi BLS (the stack charon uses), the consensus spec tests and Web3Signer's own examples.
- Every Web3Signer eth2 request type through Gloas:
- attestations, blocks, aggregates and sync committee duties;
- exits, registrations and deposits;
- payload attestations, proposer preferences and self-built payload envelopes.
- EIP-3076 slashing protection, checked against the interchange test suite, with import and export.
- Pinned to the cluster lock. The signer pins the charon lock on first start and checks its hashes and aggregate signature. After that it refuses any other lock, and any fee recipient the lock didn't agree.
- Client roles. mTLS client certificates and tokens carry
duties,exitordepositroles, so the validator client can't sign an exit. - A measured, minimal guest.
- Debian from a pinned snapshot, built with mkosi.
- A UKI with
kernel-hashes=on. - A dm-verity root, and a LUKS2 data disk with AEAD integrity sealed to the SNP measurement.
- No shell, getty or sshd.
- Builds from two separate checkouts are byte-identical, so anyone can recompute the expected measurement.
- Small. About 7,500 lines of Rust outside tests. It uses blst, ring and rustls, and no consensus-types library.
Tested against Lighthouse, Teku, Lodestar and Prysm, each signing through its own signer as one operator of
a 3-of-4 charon cluster (e2e/devnet/).
- Charon verified every partial signature, and every duty reached the chain, Gloas payloads included.
- The cluster kept working with one node down.
- Slashing protection held across restarts.
cd signer
cargo build --release --features insecure-dev
./target/release/dvtee serve \
--platform insecure-dev \
--network hoodi \
--keystores-dir /path/to/.charon/validator_keys \
--cluster-lock /path/to/.charon/cluster-lock.json \
--data-dir ./data \
--listen 127.0.0.1:9000- Point the validator client at
https://127.0.0.1:9000, and trust./data/tls/cert.pem.signer/README.mdhas the flags for each client. insecure-devhas no security. It's for development, and it refuses mainnet. In a real deployment the signer runs as--platform teeinside the guest image.- Check a running signer:
NONCE=$(openssl rand -hex 32)
curl --cacert data/tls/cert.pem "https://127.0.0.1:9000/api/v1/tee/attestation?nonce=$NONCE" > evidence.json
./target/release/dvtee verify-evidence --evidence evidence.json --nonce $NONCE \
--expected-cluster-lock-hash <hex> --allow-insecure-devIn a guest, drop --allow-insecure-dev and add --expected-measurement <hex> --fetch-vcek.
See signer/README.md for every option, the API, mTLS and tokens, and testing.
image/builds the guest image, andscripts/expected-measurement.shcomputes its launch measurement from the build output.- docs/hardware-runbook.md is the step-by-step first run on a bare-metal AMD EPYC
host. It covers:
- the OVMF build and the image build;
- first boot and attestation;
- seal and unseal across reboots;
- negative tests;
- a charon devnet with the signer in the guest.
| Path | What it is |
|---|---|
signer/ |
dvtee, the signing service |
image/, ovmf/, scripts/ |
The reproducible guest image, firmware, measurement and launch tooling |
e2e/ |
Devnet and simnet harnesses with charon and real validator clients |
docs/ |
Threat model, cluster edits, load test, hardware runbook |
| ARCHITECTURE.md | Measured boot and disk sealing |
| ROADMAP.md | Status, design choices, known gaps |
poc/ |
The 2024 proof of concept: charon's DKG and stock Web3Signer inside an SNP guest |
vm-scripts/, linux-mainline-sev-src/ |
The 2024 prototype image, superseded by image/ and kept for reference. Not safe for keys |
- Hardware and Hoodi. A first boot on SEV-SNP hardware, then one operator of a live Hoodi DV signing through the guest.
- Keys born in the TEE. Charon's DKG delivers each share straight into the guest over attested TLS. Later, the DKG runs inside the guest.
- Cluster edits with guests. Recover, reshare and replace-operator, ordered by a threshold of operators (design).
- More TEEs. Evidence comes from Linux configfs-tsm, so Intel TDX and Arm CCA use the same code path. Mixing vendors within one cluster is the long-term goal: one share per chip family.
Useful git hooks live in .githooks. Enable them with:
git config --local core.hooksPath .githooksSecurity issues: see SECURITY.md.
Business Source License 1.1, changing to GPL-3.0 four years after each version's release. Production use outside the Additional Use Grant needs a commercial license from Obol.
Third-party files keep their own licences: the kernel packaging and patches in
linux-mainline-sev-src/ and initramfs-init (GPL-2.0, from Alpine aports and
mkinitfs), and the edk2 firmware built by ovmf/ (BSD-2-Clause-Patent and its
submodules' licences).
