ARCs
ARCs copied to clipboard
ARC-0020 - token standard allowing public/private transfer to contracts
README.md Discussion main.aleo main.leo
There are several ARC-20 implementation standard proposals for the Aleo blockchain. This ARC provides a complete token standard for both public and private account/contract operations. Compared to other ARC-20 proposals this ARC has the following major differences:
- Replaced onchain
approve()functionality with offchain signature -approve()transition should not be implemented, instead user can agree to send token to a contract offchain using an offchain signature process to approve a transaction, and an onchain function egtransfer_from_public()that can apply that signature. This way smart contract interaction does not have to be a two step, but rather a one step process. This solution will save system resources as the approve part is offchain rather than onchain. - Enable private token records to be sent to smart contracts - This problem must be addressed because one of the key selling points of Aleo is its programmable privacy. The author of this ARC also believes that to utilize the UTXO nature of Token records also leads to a much larger scalability than that can be achieved applying mappings and public tokens.
- A signature scheme that connects the contract with the main website of the project. Thus make it easier for users to trust the token contract, and decrease the possibility of phishing attacks.
By applying the proposals pointed out in this ARC the token standard will be more usable because of:
- one step approval process applying off chain signature, instead of two steps of
approve()andtransfer_from(), and - the ability to send private tokens to smart contracts will enable a thriving DeFi life on top of the Aleo network.
- make token contracts more secure by connecting them to the company website applying a digital signature.
+1! This is essential for all DeFi projects building on ALEO!