SRC20
Privacy-preserving ERC20 tokens with shielded balances
What Makes SRC20 Different from ERC20
Feature
ERC20
SRC20
Contract Interface
use alloy::sol;
sol! {
interface ISRC20 {
function name() public view returns (string);
function symbol() public view returns (string);
function decimals() public view returns (uint8);
function totalSupply() public view returns (uint256);
function balanceOf(address account) public view returns (suint256);
function transfer(address to, suint256 amount) public returns (bool);
function approve(address spender, suint256 amount) public returns (bool);
function allowance(address owner, address spender) public view returns (suint256);
function transferFrom(address from, address to, suint256 amount) public returns (bool);
event Transfer(address indexed from, address indexed to, suint256 value);
event Approval(address indexed owner, address indexed spender, suint256 value);
}
}Architecture
Quick Start
Navigation
Page
Description
Key Concepts
Signed Reads for Balances
Shielded Writes
Encrypted Events
See Also
Last updated

