账户和地址
概览
Accounts in Conflux can be compared to "bank accounts", as they store CFX. 用户可以创建和管理他们的账户,存入CFX,并发送交易。 账户地址是一个标识账户的唯一的字符串,用于从Conflux VM的巨大表中检索账户信息,该表存储了账户内容和余额。
备注
The account implementation, including the account content and address computing rule is slightly different in core space and espace.
地址
Account addresses, like bank account numbers, identify accounts and can be examined on ConfluxScan. However, the address format differs between core space and espace. Core space使用CIP-37编码方案,而espace使用与以太坊相同的格式。
下面是一些示例,显示了两个空间中的地址格式:
// espace address
0x1e97870f263700f46aa00d967821199b9bc5a120
// Core Space Mainnet address
cfx:aatktb2te25ub7dmyag3p8bbdgr31vrbeackztm2rj
// Core Space Testnet address
cfxtest:aatktb2te25ub7dmyag3p8bbdgr31vrbeajcg9pwkc
账户类型
有两种账户类型,外部拥有的账户(externally-owned account, EOA)和合约账户。 EOA由拥有该账户私钥的任何人控制,而合约账户是部署在网络上的智能合约,由其代码控制。