Skip to main content
Beta on SKALE Base Sepolia — Confidential Tokens are available for testing and development on testnet. Mainnet deployment coming soon. API is stable but may see refinements.

Why Confidential Tokens?

Standard ERC20 tokens store balances as plaintext onchain — anyone can see who holds what. For payroll, lending, gaming, or any application where financial privacy matters, this is a non-starter. Confidential Tokens solve this by encrypting every balance using a dual-layer model: threshold encryption for onchain processing (transfers, sufficiency checks) and ECIES encryption for private off-chain viewing.

What Are Confidential Tokens?

Confidential Tokens are ERC20 tokens where balances are encrypted onchain. No plaintext balance is ever stored. They use a dual-encryption model — threshold encryption for on-chain logic and ECIES encryption for off-chain viewing.

Quick Start

Dual-Encryption Model

Both layers encrypt every balance. The TE layer allows the network to verify and process transfers without seeing amounts. The ECIES layer allows the token holder to read their balance privately off-chain.

Architecture

A confidential token transfer works like this — encryption of new balances happens inside the CTX callback, not upfront:

Key Contracts

Roles

Delegating a Viewer role

A holder registers their viewer public key via setViewerPublicKey(). The holder can also authorize other addresses to decrypt specific past transfers. This is done by calling functions such as authorizeHistoricViewTimeRange(viewer, fromTimestamp, toTimestamp) or authorizeHistoricViewTransferId(viewer, transferId). The setViewerAddress() function allows a token holder to assign an account with a previously registered public key as the authorized viewer of their confidential balance information.

Learn More