Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gianalarcon committed Jan 31, 2024
1 parent 4067ee5 commit 2a2dcee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ch02-14-security-considerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ Moreover, using a block explorer, we can view the deployed parameters in the tra

If your smart contract requires storing private data on-chain, consider off-chain encryption before sending data to the blockchain. Alternatively, explore options like hashes, merkle trees, or commit-reveal patterns to maintain data privacy.

## 5. Denial of Service.
## 6. Denial of Service.

Denial of Service (DoS), also called griefing attack, entails a situation where the atacker causes grief for other users of the protocol. A DoS attacker cripples the functionality of a Smart Contract even if they gain no economic value from doing so. A major attack vector when it comes to Denial of Service is the gas exhaustion attack. In this attack, a malicious user can call a function that needs an excessive amount of gas for execution. The consequent exhaustion of gas can cause the smart contract to stop, thus denying services to legitimate users.

Expand All @@ -390,6 +390,8 @@ Denial of Service (DoS), also called griefing attack, entails a situation where
loop {
// very expensive computation
}
}
}
}
```

Expand Down

0 comments on commit 2a2dcee

Please sign in to comment.