Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 563 Bytes

45.md

File metadata and controls

10 lines (7 loc) · 563 Bytes

Unencrypted Private Data On-Chain

Description:

It is a common misconception that private type variables cannot be read. Even if your contract is not published, attackers can look at contract transactions to determine values stored in the state of the contract. For this reason, it's important that unencrypted private data is not stored in the contract code or state.

Remediation:

Any private data should either be stored off-chain, or carefully encrypted.

References:

https://swcregistry.io/docs/SWC-136