An open-source protocol that separates identity from redemption, so observers cannot link a deposit to its redemption while every transfer carries a signed, attributable statement of purpose.
Built by Soulbound Security. Reference implementation live at soulbound.finance on Arbitrum One since April 2026.
Depositors are identity-linked through a non-transferable Soulbound ID (the SoulBoundToken contract), which carries a zero-knowledge identity commitment. Recipients redeem to a fresh address using a one-time-use (OTU) redemption code. The protocol never records which deposit a redemption corresponds to.
This is not a mixer. Deposits are SBT-gated: only a Soulbound ID holder can deposit, and identity is applied to the Soulbound ID through zero-knowledge KYC (Privado ID). Every OTU generation requires a per-transaction EIP-712 signed attestation of purpose, which the contract verifies and which stays permanently in that transaction's data on chain. Compliance is structural, not bolted on.
Core properties:
- Compliant by design. KYC-linkable deposits via zero-knowledge commitment (Privado ID). EULA acceptance cryptographically recorded at mint. Per-transaction purpose attestation on every OTU. Regulators have an audit surface; counterparties do not.
- Private redemption. Recipient addresses are ephemeral. No recipient data is stored on-chain or off-chain beyond the redemption transaction itself.
- Multi-token. Native ETH plus controller-whitelisted ERC-20s. See Supported Tokens.
- Immutable contracts. No proxies, no
delegatecall. Upgrades require explicit member migration. Auditable by construction. - Unconditional exit.
emergencyWithdrawlets any Soulbound ID holder reclaim their full balance at any time, with no fee.
See §1 System Overview for the full contract dependency graph.
┌──────────────────────┐
│ SoulBoundToken │ Identity layer (Soulbound ID). Non-transferable.
│ │ ZK commitment. EULA gate on mint. Nonce tracks
│ │ OTU generation.
└──────────┬───────────┘
│
┌──────────▼───────────┐
│ DepositPool │ Inflow. Multi-token deposits. Per-tx EIP-712
│ │ purpose attestation. Splits fees on OTU generation:
│ │ Protocol fee → Treasury (direct)
│ │ OTU + gas fee → ClaimPool
└──────────┬───────────┘
│
┌──────────▼───────────┐
│ ClaimPool │ Outflow. Operator-processed redemptions.
│ │ Batch processing. Gas fund, sent only to
│ │ controller-approved recipients.
└──────────────────────┘
Deployment: SoulBoundDeployer, atomic deploy + link in a single tx.
sequenceDiagram
autonumber
participant M as Member with a Soulbound ID
participant D as DepositPool
participant C as ClaimPool
participant O as Operator, off chain
participant R as Recipient, any address
M->>D: deposit
M->>D: generateOTU with a signed purpose attestation
D->>C: face value and gas fee, protocol fee goes to the treasury
Note over M,O: the one-time-use code is made and validated off chain and never appears on chain
R->>O: presents the code
O->>C: processRedemption
C->>R: face value
This is hybrid custody: value sits in immutable contracts and the
redemption side is released on the word of an off-chain operator, because
only an off-chain service can check a code that must never appear on chain.
A member can always take their own deposit back with emergencyWithdraw.
| Role | Holds | Can | Cannot |
|---|---|---|---|
| Member | Their own deposit | Deposit, generate a code, withdraw their balance at any time | Touch anyone else's balance |
| Operator | The redemption balance | Pay redemptions, singly or in batches | Administer roles, reach the gas fund |
| Gas manager | The gas fund | Send it to controller-approved recipients, top it up with ETH | Reach the redemption balance: the contract executes nothing on its behalf |
| Controller (a 3-of-4 multisig or similar) | No funds | Appoint and rotate the operator and gas manager, curate the gas fund recipient list, set fees within caps, manage the token list | Move funds directly |
The operator, the gas manager and the controller are high-trust keys. The protocol bounds what each can reach and lets each be replaced; it does not make any of them harmless. The controller is the root of trust: it moves no funds, but it appoints the roles that do. Hold it in a multisig, never a single key, and have it accept its roles before the pools take deposits. See Role and Trust Model.
The specification has the diagrams for where the money sits, who can do what, the gas fund and deployment.
One Soulbound ID per address. Non-transferable, non-burnable. Holds the member's soulboundId (a public identifier derived on chain from the address, a salt the deployer chooses and the chain id), zkpCommitment (Privado ID) and EULA acceptance hash. The nonce increments on each OTU generation and provides replay protection for EIP-712 attestations.
ZK commitments can be set, replaced or cleared post-mint: mint first, verify later. A member who joined under earlier terms can accept the current ones on chain with acceptEula; whether they must is the deployment's policy. See §2 SoulBoundToken.
Accepts ETH and whitelisted ERC-20s from Soulbound ID holders. No fees on deposit. OTU generation deducts the face value plus protocol and gas fees from the member's internal balance, sends the protocol fee directly to the treasury and forwards the remainder to the ClaimPool. The contract has zero knowledge of the OTU code itself.
See §3 DepositPool and §4 EIP-712 Fee Attestation.
Holds redemption funds and the gas reserve. Redemptions are processed by a privileged Operator role, the bridge between off-chain OTU validation and on-chain fund release. Supports single and batch redemptions. The gas fund is a separate balance that pays for the deployment's on-chain operation. The gas manager can send it only to controller-approved recipients and can top it up with ETH, so a deployment that takes little or no fee can still fund its own gas.
See §5 ClaimPool and §7 Role and Trust Model.
Fees are bound to declared purpose. Every OTU generation requires an EIP-712 signed attestation, which the contract verifies before applying the matching fee tier; the signature stays permanently in the transaction's data on chain. No OTU can be generated without one. Fees are charged on top of the OTU face value, not deducted from it. See §3 Fee Structure.
| Declared purpose | Protocol fee | Gas fee | Total at the reference gas fee | Status |
|---|---|---|---|---|
| Personal, non-commercial and charitable | 1.00% | set at deployment | 1.25% | Live |
| Commercial and enterprise | 2.00% | set at deployment | 2.25% | Disabled at deployment; enabled only upon regulatory approval |
The gas fee is chosen when a system is deployed and cannot change afterwards. It is whatever suits the chain and the operating model, from zero up to a 5% cap; the reference deployment uses 0.25%. A deployment that takes no gas fee funds its own gas through the gas manager. Protocol fees are adjustable by the controller multisig and hard-capped at 5% per tier in the contract.
Whitelist exact-transfer tokens only. The pools credit the amount a
transfer states, not the amount that arrives. That is exact for native ETH
and for standard ERC-20s. This is stablecoin-first infrastructure, built
around USDC and DAI, with ETH and WBTC as the reference non-stable assets;
none of them carries this risk. A token that takes a fee on transfer,
rebases, or can turn either on later would leave the pools holding less
than they owe, and the last members out would be short. addToken does
not check for this. The controller's whitelist is the control: integrator
beware.
Read the assumptions first. §10 Assumptions and Known Limits lists, in one place, what this protocol relies on and what it does not do: the trusted keys, what is public, what the pools do not check, and what administration can break. A review that finds one of them has found the design.
Amounts are public. This is not a mixer. A code's face value is visible on chain when it is generated and when it is redeemed. Reducing how easily the two can be matched is done by whatever runs the protocol, not by the contracts; see Observability.
sbf-protocol/
├── src/
│ ├── SoulBoundToken.sol
│ ├── DepositPool.sol
│ ├── ClaimPool.sol
│ ├── SoulBoundDeployer.sol
│ └── interfaces/
│ └── ISoulBoundToken.sol
├── test/ # published tests, no test library
├── scripts/
│ └── Deploy.s.sol # one-transaction deployment, and its verification
├── docs/
│ └── PROTOCOL_SPEC.md
├── audits/ # dated review records
├── .github/workflows/ # builds and runs the tests on every push
├── CLAUDE.md
├── TESTING.md
├── foundry.toml
├── LICENSE
└── README.md
Requires Foundry.
# Clone
git clone https://github.com/SoulboundSecurity/sbf-protocol.git
cd sbf-protocol
# Build
forge build
# Test
forge test
# Gas report
forge test --gas-reportTarget chain: Arbitrum One (mainnet) / Arbitrum Sepolia (testnet).
Deploy with the script. It deploys the whole system in one transaction and nominates the address you name for the controller roles, so the account that sends the transaction never holds or is offered one:
export CONTROLLER=0x... # who administers the system: a multisig
export PROTOCOL_TREASURY=0x... # where protocol fees go
export GAS_MANAGER=0x... # who sends and tops up the gas fund
export OPERATOR=0x... # who pays redemptions
export EULA_HASH=0x... # the terms hash members accept when they join
export GAS_FEE_BPS=25 # fixed for the life of the system; 0 to 500
export DOMAIN_NAME="Your Name" # what members see in their wallet when they sign; fixed for the life of the system
export ID_SALT=0x... # your own salt for member identifiers: any 32-byte value unique to this
# deployment, e.g. $(cast keccak "a phrase of your own"); fixed for the life of the system
export TOKENS=0x...,0x... # optional; ETH is always listed
forge script scripts/Deploy.s.sol --tc Deploy --rpc-url $RPC_URL --broadcastSupply the sending key the way your own key handling requires; the script never reads a private key. Before it sends anything it checks that the system it is about to create carries every role, the treasury, the gas fee, the name, the identifier salt, the terms and the token list it was given. That proves the code does what the environment asked. It cannot tell you the environment was right.
Next, the controller takes its roles: it calls acceptController() on each
of the three contracts, which a multisig can send as one batched
transaction. Until it does, the roles rest with a contract that has no
functions, so nothing can be administered and nothing is at risk. A
controller address that cannot act can never accept, which turns a
mistyped address into a redeployment instead of a live system nobody can
administer.
Then verify, before any address is published. Take the expected values from the record they came from (the multisig's own, the signed terms), not from the shell that deployed, add the three deployed addresses, and run:
export SBT=0x... DEPOSIT_POOL=0x... CLAIM_POOL=0x...
forge script scripts/Deploy.s.sol --tc Verify --rpc-url $RPC_URLIt reads the chain, sends nothing, and fails unless the three contracts are linked to each other, carry those values, and the controller has accepted all three roles. For tokens it confirms that each one you named is listed; it does not look for others. It reads the three addresses you give it, so take those from the deployment transaction itself. The sequence, and deploying by hand, are in §6 SoulBoundDeployer.
Redemption: single or batch. Most deployments only need
processRedemption. batchProcessRedemptions is for volume, and for
privacy on public redemptions, where paying many recipients in one
transaction breaks the timing link between a code being presented and its
payout. A batch skips a bad item, a payout the recipient or the token
refuses included, and never reverts for one; settle against the per-item
events. Whether a recipient can actually be paid is checked off chain,
before a redemption is queued: see
§9 Checking a redemption before it is queued. See §5 Batch Redemption.
See TESTING.md for full test coverage documentation and contribution guidelines.
| Date | Review | Outcome |
|---|---|---|
| May 2026 | Independent third-party review by Gakarot, with mainnet-forked Foundry PoCs | Two findings, both fixed in c4d7787. Full record in audits/2026-05-28-gakarot-disclosure.md |
| June to August 2026 | Internal security review | Gas fund target whitelist added to ClaimPool (PR #7, merged in 38e250d) |
| September 2026 | Architecture-level protocol security review | Published as Where Privacy Actually Lives |
| October 2026 | Full-stack data-flow architecture review (internal): user, money, and points paths traced end to end across the reference platform and protocol, with trust-boundary and key-custody analysis; protocol reviewed at cb13cf2 |
Technical companion published as Soulbound Finance: Security and Privacy; ClaimPool role administration moved to a dedicated controller role. Full record in audits/2026-10-11-internal-role-administration.md |
| October 2026 | Zero-semantics review (internal): every on-chain default, zero, and absent value checked against the vulnerability class in When Zero Meant Trusted | No findings; deliberate zero-sentinels documented with their boundaries. Full record in audits/2026-10-13-zero-semantics-review.md |
| November 2026 | Audit on sbs-engage of the whole repository at ec55584, reading this repository only, with the design as the specification states it (sbf-protocol-agpl3-lic_review.pdf, sbf-protocol-agpl3-lic_review.md) |
No Critical or High. Three raised: one ruled Informational, two Low fixed in 1.1.0 and closed on retest. Nothing open |
Gakarot subsequently joined Soulbound Security as Director of Blockchain Security; later reviews are internal. Further independent third-party assurance will follow alongside our wider certification programme.
From 2026-11-27 this repository is reviewed on sbs-engage, Soulbound
Security's productized review harness, which runs on Claude Mythos under
Anthropic's CVP approval. One read-only reviewing session per section,
findings merged by root cause, severity computed from a fixed rubric, and
a re-run against each fix. Its report and its full Markdown record are
published in audits/ as it produced them, under the filenames
it gives them.
The audit found the value paths hold: no way to overdraw the books, trap or mis-debit a member, or pay one redemption twice. Its findings and what was done with each:
| ID | Finding | Severity | Disposition |
|---|---|---|---|
| M-1 | The gas fund's recipient list accepts either pool, so a gas fund payment sent to a pool is stranded: no function can move it | Raised as Medium | Informational, by the owner's ruling, and no contract change. It takes two privileged keys making the same mistake: the controller lists a pool and the gas manager then pays it. The recipient list is the control, no member or outside input reaches the path, and the most it can strand is the gas fund. Stated in §5 Gas Fund and §10; the keys are described in §7. The report prints the ruling beside the finding |
| L-1 | The deployment script's check runs before the transaction is sent and compares the result with the inputs it was given, where the documents describe it as reading the deployed system back | Low | Fixed in 1.1.0 (85e156f) and closed on retest. The documents and the script now say what the check is, and scripts/Deploy.s.sol has a Verify contract that reads the mined system from the chain and fails unless it is linked and carries the expected values. The controller role is also now taken by acceptance, so an address that cannot act can never hold it. See Deployment |
| L-2 | A batch of ERC-20 payouts reverts as a whole when the token refuses one recipient, where the documents say a batch never reverts for one bad item | Low | Fixed in 1.1.0 (85e156f) and closed on retest. A batch now skips a payout that is refused, by a token or by a recipient that rejects ETH, leaves that item's hash unused and its amount in the redemption balance, and pays the rest. See §5 Batch Redemption |
The audit and its retest were sbs-engage runs, both on 2026-11-27:
| sbs-engage run | Revision | Read | Result |
|---|---|---|---|
| Audit | ec55584 |
The whole repository, in eight sections | Three findings: one Medium, two Low |
| Retest 1 | 85e156f |
L-1 and L-2 | Both closed. M-1 carried as accepted on the owner's ruling. Nothing open |
sbf-protocol-agpl3-lic_review.pdf and sbf-protocol-agpl3-lic_review.md
are the harness's report and record after the last of these, under the
filenames it gives them: nothing open, with the record of each closure,
what the retest noted as left over, and the owner's ruling printed beside
M-1. A retest re-reads the findings, not the whole repository, so the
record's list of observations below the reporting bar is the audit's, made
at ec55584; 1.1.0 has since dealt with many of them.
Entries in audits/ are dated records and are not edited. The May and
October 2026 entries describe the source as it was then: a
useGasFundApprove function and a useGasFund that took call data (both
removed in ac8010b),
a five-argument deploySystem, and an identifier salt held as a constant
in the source. The specification describes the
source as it is.
To report a vulnerability: security@soulboundsecurity.io
Accepted vulnerability disclosures, and the changes shipped in response, are recorded in audits/. Operators deploying forks should review these entries to understand which findings apply to their architecture.
Any off-chain component that reads this protocol's receipts must verify the emitter of every event it acts on. Since EIP-7702 a wallet address can run code, so a transaction from a member to a protocol contract can carry logs the protocol did not write. The required checks are in Off-Chain Integration: Reading Receipts.
The authentication layer that pairs with this protocol is SBA-Auth: stateless, wallet-native authentication for high-value, low-volume control surfaces, with on-chain operator enrollment and per-action hardware-confirmed signatures. Its address-bound identity predicate is the off-chain mitigation layer referenced in the May 2026 disclosure above, its contracts follow this protocol's Role and Trust Model, and it ships AGPL-3.0 with a full specification, deployment use cases, and an internal adversarial review on record in its own audits log.
- Website: soulboundsecurity.io
- App: soulbound.finance
- Research: blog.soulbound.finance
- X: @soulboundsec
- Commercial, regulatory and legal: legal@soulboundsecurity.io
- Protocol security: security@soulboundsecurity.io
AGPL-3.0. See LICENSE. Commercial licences are available from Soulbound Security for integrations that cannot adopt AGPL-3.0 terms.
© Soulbound Security Ltd 2026