This contract is used to register a new user with a tweeter account. Figure 9.9 summarizes the functions available in this registry contract:

Figure 9.9: TwtRegistry contract summary

Similar to an account contract, TwtRegistry() is a constructor function, and different variables and mappings have been used to see the number of users, force them to use a newer version of registration updates, and administrate accounts using bool _registrationDisabled as shown in Figure 9.10:

Figure 9.10: Constructor, variables, and mapping

Get Ethereum Smart Contract Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.