Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 817 Bytes

Zero-address Check.md

File metadata and controls

23 lines (20 loc) · 817 Bytes

address(0) which is 20-bytes of 0’s is treated specially in Solidity contracts because the private key corresponding to this address is unknown.

Ether and tokens sent to this address cannot be retrieved and setting access control roles to this address also won’t work (no private key to sign transactions).

Therefore zero addresses should be used with care and checks should be implemented for user-supplied address parameters.


Slide Screenshot

144.jpg


Slide Text

  • address(0) X -> Private Key
  • Transfer Ether/Token -> Burn
  • Access Control
  • Special Consideration
  • Zero-Address Checks
  • Addr Parameters

References


Tags