Cairo function visibility defaults and accidental public access
Cairo function visibility defaults and accidental public access When writing StarkNet contracts in Cairo, a developer often relies on the language’s visibility keywords to control which functions can be invoked from outside the contract. However, Cairo’s compiler does not enforce a private or owner‑only semantics; instead, it treats functions as external or