SODALABS

How Safe and smart contract wallets get onchain privacy

Nov 29, 2026 · Perspective
Follow Soda Labs

Treasuries and other serious onchain money usually live in a smart account, not a single-key wallet. The account is a contract, and the people behind it have already agreed who can spend.

That policy does not hide the books. On a public chain, anyone can read the account's balances and follow its transfers. Those flows often reveal counterparties: a supplier, a payroll provider, a law firm, a fund's investors.

Soda Bubble is a privacy layer for tokens. It can attach an encrypted balance to a smart contract wallet, including a Safe smart account, and move that balance while spending still follows the wallet's own approval.

This is independent work with Safe technology. It is not a Safe partnership, endorsement, or a co-branded product.

What is a smart contract wallet?

An externally owned account, or EOA, is a key. The key signs, and the address that belongs to it holds the assets. Many privacy designs assume that same key also encrypts amounts, decrypts the values it may read, and authorizes private transfers.

A smart contract wallet is not a key. It is a contract. A Safe, the example this post uses, has no private key of its own. Authorization is a policy: a set of owners, a threshold, and any other rules the account already enforces. To spend, the Safe approves the transaction under that policy.

So privacy for a Safe cannot mean giving the contract a key and treating it like an EOA. The encrypted balance has to belong to the Safe address, and spending it still has to need the Safe's own approval. The account stays keyless. The policy stays the policy.

The same holds for other smart contract wallets that are policy-controlled accounts rather than single keys. This post uses Safe because it is a familiar treasury account. The point is the account model, not a brand of wallet.

Why does a Safe still leak on a public chain?

A Safe is the account type many multisig treasuries use. A fund or operating company that runs a vehicle from one meets the same problem: several people approve, and the account itself holds the assets.

Every balance and every transfer of that account is public. An observer who watches for a month can often map who the treasury pays and who pays it. The leak is not only the size of a position. It is the graph of counterparties.

Why onchain privacy matters for institutions states the problem more broadly: public ledgers make interactions easy to track. For a treasury, the practical cost is that the policy protecting the funds does nothing to protect the books.

Can Safe and other smart contract wallets get onchain privacy?

Yes. At a high level, Bubble treats the Safe as the owner of an encrypted token balance.

  • The Safe address can own that balance.
  • Spending it still needs a transaction the Safe approves.
  • The Safe does not need a key of its own.
  • Bubble is called through the ordinary Safe transaction path, and the Safe needs no extra module or guard for that call.

The same picture applies to other smart contract wallets that hold assets under a policy rather than a single key. Safe is the worked example, not an exclusive claim.

This description stays at the account level so it remains true as the confidential token model evolves. It is not a tour of a particular token contract. The product and technology pages describe Bubble more generally; developer docs are the entry point for builders.

What is the difference between confidentiality and privacy?

These words are easy to mix up, so this post uses them in a specific way.

Confidentiality means amounts can stay hidden. Other approaches may offer that for a Safe or another smart contract account.

Privacy, as used here, means more, and it is the foundation of this post: amounts and relationships, the counterparties a treasury pays or is paid by. Soda Bubble is the one that brings that privacy to Safe and other smart contract accounts.

Hiding a relationship uses notes, described below. That can hide the counterparty, but it is not an absolute guarantee that a payment cannot be linked.

How does Soda Bubble work alongside a Safe?

Below is the ordinary path in and out of the private layer, plus the two ways to pay once a balance is encrypted.

What is public when value enters or leaves Bubble?

When the Safe shields ordinary tokens into Bubble, the amount shielded is public at that moment. The result is an encrypted balance owned by the Safe address. An observer can see that the Safe holds a private token account, but not a readable amount.

Unshielding is the reverse. Moving tokens back out of Bubble makes that amount public again.

The boundary is visible. Inside Bubble, amounts and balances stay encrypted onchain while contracts still compute on them.

How does a confidential transfer work?

Once the Safe holds an encrypted balance, it can send an encrypted amount to another account. The chain shows both addresses and that a transfer happened. The value moved is encrypted.

This is confidentiality, not privacy in the sense used above. The amount is hidden. The relationship is not. Anyone looking at the chain can still see that the Safe interacted with that recipient.

Can a payment also hide the relationship?

When the counterparty itself is sensitive, there is a second level: notes. This is the privacy path: amounts stay hidden, and the relationship can too.

The Safe can turn part of its encrypted balance into a note: a secret, rather than a payment that names a recipient on the same transaction. The note is handed to the recipient off-chain, and the recipient later redeems it into their own encrypted balance from their own address. Amounts stay encrypted throughout.

This can hide the relationship, but it is not an absolute guarantee that nobody can link the payment. How unlinkable a redemption is depends on how many other notes are in use and on timing.

A convenience path creates a note for a named recipient in one step. It is simpler, but it records both addresses in the same transaction, so it hides amounts, not the relationship.

Developer detail on notes lives in the anonymous tokens guide.

What stays private, and what stays visible?

A short recap of the steps above.

What can stay encrypted:

  • The Safe's token balance, once shielded.
  • The amount moved in a confidential transfer.
  • The amounts inside a note, from creation through redemption.

What stays visible:

  • Shield and unshield amounts, at the boundary.
  • The fact that the Safe holds a private token account.
  • Both addresses in a confidential transfer, and in the convenience path that names a recipient.

What is qualified:

  • A note handed off-chain and later redeemed from the recipient's own address can hide the relationship, but unlinkability depends on how many other notes are in use and on timing. It is not a claim that nobody can link the payment.

How can an auditor or counterparty still get what they need?

Reading and spending are separate permissions.

Spending needs the Safe. Only a transaction the Safe approves can move its encrypted balance. A view of the balance is not a right to spend it.

Reading needs an explicit grant. Nobody reads a balance by default. The Safe can grant a named account the right to decrypt a specific balance value, and that grant is recorded onchain. The chain can show who may read which value, not the value itself.

A grant to a specific value is not the same as a revocable ongoing view. A balance changes with each transaction, so a grant made for today's figure covers that figure. A separate, broader view permission can be given with an expiry and can be revoked, for cases such as an auditor who needs ongoing access. Not every read grant can later be withdrawn.

Selective disclosure is the broader idea: a recorded permission to read, not a public balance. The access control list docs describe how grants are expressed in Bubble.

What does this privacy depend on?

Two controls sit outside the wallet policy.

The network threshold. Values stay confidential as long as fewer than a threshold of Bubble nodes collude. Bubble uses garbled-circuit MPC so contracts can compute on those encrypted values; why that tool fits institutional privacy is covered separately, and the protocol overview is the starting point in the docs.

Token contract ownership. Whoever owns an upgradeable token contract can replace its logic. If a Safe holds that ownership, upgrades need the same kind of approval as payments. If someone else holds it, they can change how the token behaves.

What does not change is the Safe itself. Its signing policy is not replaced. Spending still needs the Safe's own approval. Bubble is called through the ordinary transaction path and needs no extra module or guard. The points where value enters and leaves the private layer stay visible.

For a treasury, the result is this: balances and transfer amounts can stay encrypted, reading is a grant, and the confidentiality of the values rests on the network threshold.

For asset managers, the problem is keeping positions and flows out of the clear while settlement stays onchain; see Asset Management and Trading. For teams that want confidentiality inside their own product, see Infrastructure and Wallets.

Questions people ask

Can I use Bubble with a Safe?

Yes. The Safe address can own an encrypted balance. The Safe does not need a key of its own. Bubble is called through the ordinary Safe transaction path and needs no extra module or guard.

Does this work with other smart contract wallets, or only Safe?

The account-level picture is not Safe-exclusive. Other smart contract wallets that are policy-controlled accounts, rather than single keys, can be described the same way: the wallet address owns the encrypted balance, and spending still needs that wallet's own approval. This post uses Safe as the example.

What stays private when a Safe transacts?

Balances and transfer amounts can stay encrypted once value is inside Bubble. Confidential transfers hide the amount, not the relationship. Notes can also hide the relationship, with the limits described above. Shield and unshield amounts are public at the boundary.

What is the difference between confidentiality and privacy?

Confidentiality means amounts can stay hidden. Other approaches may offer that for a Safe or another smart contract account. Privacy, as used here, means amounts and relationships, the counterparties a treasury pays or is paid by. Soda Bubble is the one that brings that privacy to Safe and other smart contract accounts. Hiding a relationship uses notes, and unlinkability is not an absolute guarantee.

Do signers have to change how they approve transactions?

Spending still needs the Safe's own approval. Bubble is called through the ordinary Safe transaction path and needs no extra module or guard. Encrypted inputs bind to one designated owner account. If someone else submits the Safe transaction, such as another owner, a relayer or a bundler, the designated owner grants an extra permission first. This post does not claim that every other part of the signing workflow is unchanged.

Is this a partnership with Safe?

No. This is independent work with Safe technology. It is not a Safe partnership, endorsement, or a co-branded product.

Can an auditor or regulator review a treasury's activity?

Yes, when the Safe grants a read permission. That grant covers balance values, not a history of transfers or counterparties. A grant to a specific value is not the same as a revocable ongoing view, and a read permission does not let anyone spend.

What happens if the token contract can be upgraded?

Whoever owns an upgradeable token contract can replace its logic. That is separate from the Safe's policy over its own balance.

What does confidentiality of the amounts depend on?

Values stay confidential as long as fewer than a threshold of Bubble nodes collude.

Where should builders start?

The docs are the entry point, including the getting started guide. Developers collects the public starting points on the site.

Follow Soda Labs

← Back to Blog and News