ERC-20 & PERC-20
PERC-20 Tokens
We introduce a new type of token – PERC20 (private ERC-20). It has two main differences from regular ERC-20 standards:
default
balanceOfandallowancefunctions are disabled in favor of your own implementation function. You should implement some access control logic or usemsg.senderto check who sent that call. Ifeth_callwas sent from EOA and was signed, it will recovermsg.senderfrom provided signature, otherwise, itmsg.senderwill be empty addressTransferandApprovalevents are disabled, since they can leak sensitive information
You can find example of PERC-20 contract in the interaction guide: Sample PERC20 contract
EVM Tokens
Swisstronik is compatible with ERC-20 tokens and other non-fungible token standards (ERC-721, ERC-1155) that are natively supported by the EVM.
The main problem with the usage of the ERC-20 and other non-modified ERC token standards is that it will disable a lot of functionality such as private transfers and data protection (balance is visible to anyone)
Last updated