Skip to content

Commit c2300ad

Browse files
authored
Presentation for week-5 (#143)
* Create README.md * Add assignment proposal for gas optimization presentation Added a detailed assignment proposal for a presentation on gas optimization versus security in smart contracts, including title, names, deadline, category, and relevance.
1 parent 8fe3229 commit c2300ad

File tree

1 file changed

+29
-0
lines changed
  • contributions/presentation/week5/makari

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Assignment Proposal
2+
3+
## Title
4+
5+
Gas Optimization vs Security: When Saving Gas Introduces Critical Vulnerabilities
6+
7+
## Names and KTH ID
8+
9+
- Md Ahsanul karim (makari@kth.se)
10+
11+
## Deadline
12+
13+
- Week 5
14+
15+
## Category
16+
17+
- Presentation
18+
19+
## Description
20+
21+
This presentation will explore how attempts to reduce gas usage in smart contracts can unintentionally introduce severe security vulnerabilities. Although gas optimization is often encouraged to reduce deployment and execution costs, certain shortcuts—such as removing safety checks, using unchecked arithmetic, delaying storage updates, or relying on low-level operations—can open the door to dangerous exploits.
22+
23+
The talk will illustrate several real examples where developers optimized for gas at the expense of security, resulting in issues such as integer overflows, re-entrancy vulnerabilities, broken invariants, and unauthorized state manipulation. Through simple code snippets and explanations, the presentation will show how these gas-saving patterns work, why they create weaknesses, and how attackers can exploit them.
24+
25+
The goal is to demonstrate that gas efficiency should never compromise contract integrity, and that secure development requires understanding the trade-offs between performance optimization and safe programming practices.
26+
27+
**Relevance**
28+
29+
This topic aligns with Week 5's focus on smart contract security by showing how everyday development choices impact contract safety. Understanding the trade-offs between gas optimization and security helps prevent vulnerabilities in real-world decentralized systems.

0 commit comments

Comments
 (0)