common-close-0
BYDFi
Trade wherever you are!

What are the differences between external and public solidity in the context of cryptocurrency?

avatarSIDESH S AI-DSDec 29, 2021 · 3 years ago1 answers

In the context of cryptocurrency, what are the key distinctions between external and public solidity?

What are the differences between external and public solidity in the context of cryptocurrency?

1 answers

  • avatarDec 29, 2021 · 3 years ago
    In the context of cryptocurrency, external and public solidity have distinct meanings. External solidity refers to the ability to import and use external contracts or libraries within a smart contract. This allows developers to reuse existing code and take advantage of the functionalities provided by these external resources. On the other hand, public solidity refers to the visibility and accessibility of functions and variables within a smart contract. Public functions and variables can be accessed and interacted with by other contracts or external users, while external functions and variables are only accessible from within the contract itself. Therefore, external solidity enables code reuse, while public solidity determines the accessibility of contract elements.