纠正管理的ERC20令牌
Rectifying Administrated ERC20 Tokens
摘要:
以太坊智能合约的开发者通常会实现管理模式,例如审查某些用户、按需创建或销毁余额、销毁智能合约或注入任意代码。这些例程将ERC 20令牌转换为管理令牌-我们在本研究中仔细研究的以太坊智能合约类型。我们发现,许多智能合约都是有管理的,与这些代币打算破坏的传统中心化参与者相比,这些代币的所有者承担的社会和法律责任较小。这带来了两个主要问题:a)代币的所有者有能力快速窃取所有资金并从市场上消失; b)如果所有者账户的私钥被盗,所有资产可能立即变成攻击者的财产。我们开发了一个模式识别框架,该框架基于9个表征管理的ERC 20令牌的语法特征,我们使用它来分析部署在以太坊主网上的现有智能合约。我们对84,062个独特的以太坊智能合约的分析显示,其中近58%是管理的ERC 20代币,占以太坊上部署的所有ERC 20代币的近90%。为了保护用户免受不受监管的令牌所有者的恶意攻击,同时又不剥夺这些所有者正确管理其令牌的能力,我们引入了SafelyAdministrated -一个强制执行ERC 20令牌负责任的所有权和管理的库。图书馆引入了三种机制:延迟维护、董事会和安全暂停。我们以Solidity抽象合约的形式实现并测试了SafelyAdministered,该合约已准备好被下一代安全管理的ERC 20令牌使用。
英文摘要:
The developers of Ethereum smart contracts often implement administrating patterns, such as censoring certain users, creating or destroying balances on demand, destroying smart contracts, or injecting arbitrary code. These routines turn an ERC20 token into an administrated token - the type of Ethereum smart contract that we scrutinize in this research. We discover that many smart contracts are administrated, and the owners of these tokens carry lesser social and legal responsibilities compared to the traditional centralized actors that those tokens intend to disrupt. This entails two major problems: a) the owners of the tokens have the ability to quickly steal all the funds and disappear from the market; and b) if the private key of the owner's account is stolen, all the assets might immediately turn into the property of the attacker. We develop a pattern recognition framework based on 9 syntactic features characterizing administrated ERC20 tokens, which we use to analyze existing smart contracts deployed on Ethereum Mainnet. Our analysis of 84,062 unique Ethereum smart contracts reveals that nearly 58% of them are administrated ERC20 tokens, which accounts for almost 90% of all ERC20 tokens deployed on Ethereum. To protect users from the frivolousness of unregulated token owners without depriving the ability of these owners to properly manage their tokens, we introduce SafelyAdministrated - a library that enforces a responsible ownership and management of ERC20 tokens. The library introduces three mechanisms: deferred maintenance, board of trustees and safe pause. We implement and test SafelyAdministrated in the form of Solidity abstract contract, which is ready to be used by the next generation of safely administrated ERC20 tokens.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。