HS23
Challenge Task Winner Blockchain HS23
The winning group is: Manuel Metzler, Reto Furrer, and Sascha Häring
Manuel, Reto, and Sascha implemented a dual deposit system that has a mutually assured destruction mechanism that discourages fraudulent activity from both buyers and sellers. For the backend they used Golang, in the frontend they used Rust that was compiled to WebAssembly. For the blockchain environment they used ICP where canisters (~smart contracts) were written in Motoko.
The price is sponsored by Axelra, a tech venture builder that accelerates digital business models (Linkedin announcement).
Important dates: (always check https://unterricht.rj.ost.ch)
- Lecture dates: 18.09.2023 - 22.12.2023
- Exam sessions: 15.01.2024 - 02.02.2024
- Challenge Task Presentations (OST, Rapperswil, 1.262): 04.12.2023 und 11.12.2023
Blockchain (BlCh)
The lectures will be pre-recorded. The lecture videos will up uploaded before the lecture on Monday at 13:10. The length of the videos will be ~ 80 - 100 minutes (2 x 45 min. lectures) divided into segments. The news segment (~10 min) will cover news around the topics blockchain and distributed systems and are not part of the exam. It should serve as on overview of current topics in this field.
Nr | Date | Topics |
---|---|---|
01 | 18.09.2023 | Admin, Challenge Task, Repetition DSy (part 1) - no exercises |
02 | 25.09.2023 | NFTs, Ethereum, Repetition DSy (part 3 - Blockchain) |
03 | 02.10.2023 | Repetition DSy (part 2), Ethereum Components / Architecture |
04 | 09.10.2023 | Solidity |
05 | 16.10.2023 | DeFi |
06 | 23.10.2023 | DAO, POAP, Stablecoins |
07 | 30.10.2023 | Wallets and Seed Phrases |
08 | 06.11.2023 | P2P and DHTs |
09 | 13.11.2023 | Algorithms for Distributed Systems |
10 | 20.11.2023 | Monero, HTLCs, Cross-chain Atomic Swaps, Payment Channels |
11 | 27.11.2023 | Interview, Exam preparation |
12 | 04.12.2023 | Challenge Task Presentations, part 1 |
13 | 11.12.2023 | Challenge Task Presentations, part 2 |
14 | 18.12.2023 | Q&A and Challenge Task Award Winner Announcement |
(those are preliminary topics, may be subject to change)
Online/Offline Lectures & Exercises
The Blockchain (BlCh) lecture will pre-recorded. I will be present in the lecture room 1.262 from 13:10 - 18:40. If you have not watched the lectures, you can watch it in the lecture (13:10 - 14:50). During exercises (15:10 - 18:40), you can work on your blockchain project (challenge task). You do not need to be present on Monday, but it is highly recommended to discuss your issues and problems with the challenge task with the lecturer. On request, you can also join the exercises remotely via MS Teams.
The online lectures and PDFs can be accessed from outside the OST network (also on Youtube), the exercise and admin material only with VPN.
Lecture
Lecture 1
The admin part gives an overview over this lecture and presents the challenge task for this course (Slides: HS23-BlCh-01-admin.pdf). In recent cryptocurrency news highlighted by Thomas Bocek, CEOs of Thodex and OneCoin face substantial prison sentences following massive fraud schemes. CoinEx's hot wallet system vulnerability led to a $53 million heist, emphasizing ongoing security issues in the cryptocurrency sphere. Meanwhile, the use of Fly.io's LiteFS as a replacement for API layers in service integrations offers both benefits and drawbacks. (Slides: HS23-BlCh-01-news.pdf). The third video starts with the repetition of Distributed Systems (DSy) (Slides: HS23-BlCh-01-repetition1.pdf). [98min]
Lecture 2
The admin part gives an update over this lecture and challenge task. (Slides: HS23-BlCh-02-admin.pdf). In recent news presented by Thomas Bocek, NFT trade value plummeted to $80 million weekly in July 2023, with 95% of collections now valued at 0 ETH. AWS's $4.5 billion in IPv4 addresses will soon incur charges, possibly boosting IPv6 adoption. Nic Carter suggests the NSA might have created Bitcoin. The Truffle Suite is wrapping up, recommending developers switch to Hardhat for smart contract testing. (Slides: HS23-BlCh-02-news.pdf). The third video jumps to the Bitcoin/Ethereum repetition (part 3) of Distributed Systems (DSy). (Slides: HS23-BlCh-02-repetition3.pdf). The fourth video gives a crash course into NFTs (Slides: HS23-BlCh-02-nft.pdf). [101min]
Lecture 3
The admin part gives an update over this lecture and challenge task. (Slides: HS23-BlCh-03-admin.pdf). In recent news presented by Thomas Bocek, Group CEO of nChain resigns. Mixin Network suffered a $200 million hack, while Huobi Global's exchange lost $7.9 million. Vitaliks X/Twitter account was hacked with SIM swap. The last article is about Quadlets as potential docker-compose alternatives for container management, using systemd. (Slides: HS23-BlCh-03-news.pdf). The third video presents the rest of the repetition of Distributed Systems (DSy). (Slides: HS23-BlCh-03-repetition2.pdf). The fourth video shows the Ethereum components (architecture view) that can be used for the challenge task. It shows both, the easy and the more interesting ways to interact with the Ethereum blockchain. (Slides: HS23-BlCh-03-arch.pdf). [72min]
Lecture 4
Thomas Bocek discussed recent developments in the blockchain and distributed systems sphere. THORSwap went into "maintenance mode" after a hacker's money laundering attempts, Gitcoin lost $500,000 in tokens due to a transfer mistake, and Marco Kuoni detailed the potential of integrating Docker and WebAssembly using a Rust program. Additionally, Cloudflare introduced the Encrypted Client Hello for enhanced internet privacy, but also experienced a DNS service disruption due to a software oversight with the ZONEMD record. (Slides: HS23-BlCh-04-news.pdf). The second video introduces the blockchain language Solidity as used in Ethereum. (Slides: HS23-BlCh-04-solidity.pdf). [97min]
Lecture 5
Thomas Bocek discussed recent developments in the blockchain and distributed systems: Sam Bankman-Fried, ex-CEO of FTX, is under trial after FTX's collapse which lost $8 billion in assets. There are opinions that the NFT market, despite low trading volumes, is not dead yet. Meanwhile, THORSwap addressed potential hacker activities with updated terms, Ferrari began accepting crypto payments, and ACPR coined "disintermediated" as a more apt term for certain financial services. Lastly, a "Rapid Reset" vulnerability in the HTTP/2 protocol led to massive DDoS attacks. (Slides: HS23-BlCh-05-news.pdf). The second video introduces decentralized finance (DeFi). (Slides: HS23-BlCh-05-defi.pdf). [100min]
Lecture 6
The admin part updates on latest discussions with students. (Slides: HS23-BlCh-06-admin.pdf). In the new part, Thomas Bocek delivers updates on blockchain and cybersecurity, highlighting the Sam Bankman-Fried trial and Binance's recent challenges, including its terminated European Visa services and U.S. dollar transaction issues. Concurrently, new cyber threats emerge: ClearFake, which tricks users with fake browser alerts, has malware hosted on the Binance Smart Chain, and a technique called RowPress poses risks to DDR memory protections. Furthermore, the concept of Conflict-free Replicated Data Types (CRDTs), essential data structures that facilitate seamless updates in collaborative applications are presented. (Slides: HS23-BlCh-06-news.pdf). The third video introduces POAPs - Proof of Attendance Protocol (Slides: HS23-BlCh-06-poap.pdf), the forth video introduces DAOs - decentralized autonomous organization (Slides: HS23-BlCh-06-dao.pdf), and the fifth video gives a brief overview over stablecoins (Slides: HS23-BlCh-06-stablecoins.pdf). [114min]
Lecture 7
The admin part updates on the challenge task. (Slides: HS23-BlCh-07-admin.pdf). In the new part, Thomas Bocek covers a range of tech and blockchain and distributed systems topics, starting with the high cost of cloud bandwidth. He then discusses the evolution of SQLite, particularly with new tools like LiteFS and Turso. Bocek briefly touches on the rise of Bitcoin due to ETF rumors, uses of NFTs in postal services, and concludes with a mention of Sam Bankman-Fried’s trial, noting his lack of crypto knowledge before founding FTX. (Slides: HS23-BlCh-07-news.pdf). The third video dives into wallets and seed phrases. (Slides: HS23-BlCh-07-wallets.pdf). [68min]
Lecture 8
The admin part updates on the lecture content. (Slides: HS23-BlCh-08-admin.pdf). In the new part, Thomas Bocek covers a range of tech and blockchain and distributed systems topics: Sam Bankman-Fried has been convicted on multiple charges related to financial fraud at FTX, facing a lengthy prison sentence. Netflix engineered a solution to document and understand pod terminations during kernel panics, enhancing their Kubernetes stability. Cloudflare suffered a significant outage due to a power failure, exposing weaknesses in their disaster recovery strategy. Meanwhile, OpenSea downsized its staff by half amid a slump in the NFT market, simultaneously gearing up for the launch of OpenSea 2.0. (Slides: HS23-BlCh-08-news.pdf). The third video dives into P2P and DHTs. (Slides: HS23-BlCh-08-p2p.pdf). [94min]
Lecture 9
In the new part, Thomas Bocek discussed events including a major Optus network outage in Australia affecting 10 million people, highlighting vulnerabilities in national telecom infrastructure. The Poloniex crypto exchange, owned by Justin Sun, experienced a hack with over $126 million stolen, leading Sun to offer a bounty for the return of the funds. An MEV bot was exploited for nearly $2 million, underscoring the risks in the MEV ecosystem. The Monero community wallet was hacked, losing around $460,000, raising security concerns in privacy-focused blockchains. Finally, BlackRock's filing for an Ether ETF significantly boosted ETH prices, reflecting growing institutional interest in cryptocurrency investments. (Slides: HS23-BlCh-09-news.pdf). The second video discusses algorithms suitable for DHT systems, followed by algorithms suitable for P2P systems (Slides: HS23-BlCh-09-algo.pdf). [82min]
Lecture 10
This week in blockchain and distributed systems news, Thomas Bocek discussed the firing of OpenAI CEO Sam Altman. He also addressed North Korea's cybercrimes, particularly in cryptocurrency thefts. He then mentions the persistent issue of developers exposing sensitive credentials in public code repositories, citing security risks. Finally, he touched on the financial challenges of Signal, a privacy-focused messaging app, emphasizing its commitment to privacy despite substantial operational costs and contrasting it with profit-driven tech models. (Slides: HS23-BlCh-10-news.pdf). The second video inroduces the privacy oriented blockchain Monero (Slides: HS23-BlCh-10-monero.pdf). The third video is about hashed time-lock contracts (HTLCs), cross-chain atomic swaps, and payment channels (Slides: HS23-BlCh-10-htlc.pdf). [91min]
Lecture 11
The admin part reminds of the CT hand-in deadline and discusses the exam from HS22 (Slides: HS23-BlCh-11-admin.pdf). This week in blockchain and distributed systems news, Thomas Bocek discussed several key developments. A company significantly cuts costs by moving from AWS to a bare-metal solution, highlighting the economic benefits of private servers over cloud services. Tether, in a significant move, freezes 225 million USDT tokens linked to a criminal syndicate, showing the influence of regulatory bodies on decentralized digital assets. The SEC charges Kraken for operating without proper registration, and Binance's CEO Changpeng Zhao pleads guilty to anti-money laundering violations, leading to hefty fines. These stories collectively underscore the evolving landscape of blockchain, regulation, and financial efficiency in the tech world. (Slides: HS23-BlCh-11-news.pdf). The third video is an interview with Dr. Christian Killer, he is head of research at Acurast and dicusses the new approach for an efficient blockchain with Acurast. [96min]
Lecture 12
The admin part reminds of the CT hand-in deadline (Slides: HS23-BlCh-12-admin.pdf). Thomas Bocek reports on blockchain news. The first story involves Do Kwon, co-founder of Terraform Labs, facing potential extradition from Montenegro to South Korea or the USA due to charges linked to TerraUSD and LUNA's collapse. The second article discusses Bitcoin's price increase, influenced by factors like a potential Bitcoin ETF and Binance's legal settlement. The final story covers a $46 million exploit of KyberSwap, a decentralized exchange, using flash loans and a code precision error, leading to significant asset losses. (Slides: HS23-BlCh-12-news.pdf). [12min]
Lecture 13
The admin part updates on the CT and remindes of the upcoming QFeedback (Slides: HS23-BlCh-13-admin.pdf). Thomas Bocek reports on blockchain news. Lugano, Switzerland, now accepts Bitcoin and Tether for taxes and services, joining Zug in integrating cryptocurrencies into public finance. Tether has implemented a new policy to freeze wallets linked to blacklisted activities, focusing on US regulations. A LinkedIn post offers a comprehensive overview of blockchain developments. Finally, the NFT market is rebounding, with trading volumes approaching $1 billion, and platforms like THORChain are witnessing significant growth in Total Value Locked. (Slides: HS23-BlCh-13-news.pdf). [11min]
Lecture 14
The admin part concludes this lecture and discusses QFeedback (Slides: HS23-BlCh-14-admin.pdf). In "Distributed Systems and Blockchain in the News", Thomas Bocek covers two main stories. The first is a supply chain attack on Ledger, a crypto wallet provider, leading to a theft of over $600,000 in crypto. The attack, caused by a phishing incident, lasted about five hours and was quickly contained by Ledger. The second story celebrates the winners of the blockchain challenge at OST 2023: Manuel, Reto, and Sascha. They created a blockchain-based dual deposit system using ICP to discourage fraudulent transactions, showcasing innovation and securing their win for the second consecutive time. (Slides: HS23-BlCh-14-news.pdf). [11min]
Challenge Task HS 2023
This semester's challenge task (CT) is the design and implementation of a blockchain-based solution to a specific problem that you have identified in your own life or community. Ideally, the application is a decentralized application (DApp).
- Find use-case or idea for your app
- Your app must include a simple frontend (e.g., HTML, Vue, React, Svelte, ...)
- Your app must include a public blockchain (e.g., Ethereum, Solana, ...)
Requirements
All requirements below must be met in order to pass this lecture.
- A working prototype for your use-case.
- Use latest stable releases of chosen libraries and frameworks.
- Interaction with a public blockchain (can be testnet).
- At least 2 participants need to be involved.
- Transparent Audit Trail. Your solution must include a feature where all relevant transactions and changes are recorded and can be viewed transparently by all participants.
- Status and process need to be shown in the frontend.
- The solution may use existing libraries and code, but those must open software software.
Deliverables: 29.10.2023, 23:59 (CET) first hand-in of your initial version of your challenge task (initial version, does not need to run). Second hand-in: 03.12.2023, 23:59 (CET) - well documented infrastructure (Readme.md or can be slides) and the source code (github/gitlab or similar) via invite or email to thomas.bocek-at-ost.ch. The code and configuration should be easy to read and/or well documented. For the presentation on the 04.12.2023 and 11.12.2023, you should show the architecture, components, and design decisions in 10-15 min, a demo in 5-10 min, and the Q&A will be 5-10 min. After your presentation, you need to hand in your PDF presentation.
You are allowed to use any language, framework, and platforms. However, the supervisors are familiar with those: Golang, Java, JavaScript/TypeScript, Ethereum, Bitcoin, Linux.
Groups
There will be groups of 2-3 for the challenge task. During the challenge task, the group shall meet every week during exercise hours to work on the task and discuss the next steps. The groups shall utilize their homework times to work on the CT, besides the exercise time slots assigned on Wednesday. You do not have be present at the exercises. The groups shall determine and set-up an internal project plan and shall distribute the workload so that each group member gets a fair load of work. Group results will be only accessible via VPN.
Nr | Name 1 | Name 2 | Name 3 | Project | Source | Presentation |
---|---|---|---|---|---|---|
01 | Sascha H. | Reto F. | Manuel M. | CottonAlley | group1.zip | group1.pdf |
02 | Dejan J. | Gianluca N. | Notary Services (3 parties) | group2.zip | group2.pdf | |
03 | Linus F. | Leonie D. | Kevin K | Supply Chain Tracking | group3.zip | group3.pdf |
04 | Fabian F. | Ali A. | Natalia G. | Rating (1-5 stars) | group4.zip | group4.pdf |
05 | Fabio L. | Nick G. | Kaj H. | CrytoVote | group5.zip | group5.pdf |
06 | Ramon S. | Josip D. | Ticketing | group6.zip | group6.pdf | |
07 | Laurin Z. | Kevin L. | upsi | group7.zip | group7.pdf | |
08 | Lukas G. | Anian G. | Auction | group8.zip | group8.pdf | |
09 | Joel S. | Noah S. | Streaming payments | group9.zip | group9.pdf | |
10 | Marc K. | Dominic W. | InventoryTracker | group10.zip | group10.pdf | |
11 | Lucien Z. | Oliver D. | Jasmin F. | Auct-Chain | group11.zip | group11.pdf |
12 | Mirio E. | Samuel M. | Dario G. | Konzert Ticket-Reselling | group12.zip | group12.pdf |
13 | Florian F. | Miles S. | Donation Service | group13.zip | group13.pdf |