Skip to content

Address Datatype

Addresses in solidity are 20 bytes long, which allows for 10^{48} possible values. We need to limit addresses to a select few (about ~10).

We need the address data type to point to a data structure, or a mapping: address -> balance.

We need to be able to store the address, lookup the balance, and transfer money from A to B, access msg.sender (#10).

The amount of addresses should be programmable, so if the end user wishes to use 1000 accounts, then that should not be a problem.

We might require special accounts to act as msg.sender for creating the smart contracts.

We require some method of referring to accounts for use in queries (#11)

Edited by Jon Shahen