=== Smart Contract Security Newsletter - Number 13 ===
This is my weekly newsletter, on Kauri for the first time. Get them in your inbox every weekend.
Lots of interesting conferences this week, the Aragon Foundation's AraCon, GörliCon for the release of the Görli testnet (POA across Geth and Parity), and the Stanford Blockchain Conference (SBC).
I admit to having a lot of FOMO about SBC, so this newsletter is pretty focused on it.
I've been fortunate to catch some of the livestream from the Stanford Blockchain Conference this week, and the content is really fantastic. Here are a few of the talks that I've really enjoyed, or that someone smart has told me is really great:
Hashed timelocked contracts are used to implement cross chain swaps. There's a few things wrong with them (also outlined here), ie. if the counterparty pulls out of the transaction, you've been grieffed, and you didn't have access to your funds for some period of time.
Dan describes "Packetized Payments", which are a bit more like a cross chain payment channel.
Patrick does a nice job of describing (application specific) state channels with a game of Battleship as an example. He describes the problem of the "Always online assumption", ie. all parties must remain online to detect and defend against cheating. That's a pretty strong assumption, especially when the other parties have an incentive to take you offline.
The proposed solution is "Pisa" (whitepaper), a protocol for incentivizing 3rd parties to do the monitoring for you, and to punish them if they don't. You might not be surprised to hear that it involves staking and slashing.
Full disclosure, I have not yet watched this talk, but my colleague Dean was super excited about the second half, which described a zero knowledge virtual machine (and thus zk smart contracts).
There's nothing like a good taxonomy to clarify your thinking. For me at least, Martin's "Four flavors of dapp behavior" were particularly illuminating, they are:
- Smart contract bytecode verification – What can happen over the course of one tx?
- Dapp/system invariants- What can happen over the course of a list of tx?
- “Blockchain specific” problems - What will happen in the case of eclipse attacks, frontrunning, chain reorderings, replay attacks, etc?
- Incentive reasoning - How will a self-interested, rational economic actor use this dapp?
Another great nugget on slide 14 are his suggestions for "how to write provable smart contracts".
And finally, he introduces Klab act, a specification language that abstracts away much of the boilerplate in the K-Framework's specification language.
Vlad and Vitalik, Ethereum's future
I haven't watch these yet, they were the last sessions today, but they start around here.
- Fuzzing Smart Contracts Using Multiple Transactions - Dilligence
- Solving Software’s Oldest Problem: Good Tech is Not Enough - Authio
- Statistical modeling of PoS systems with Tarun Chitra - ZeroKnowledgeFM
- Defeating Front-Running on Ethereum with Submarine Sends - IC3
- Uncovering a Game Of Stakes cartel - Certus One
Thanks again to everyone for reading. I hope you found something useful in here.
Want to help make this newsletter better? Join the '#maurelians-newsletter channel' in the MythX discord chat.
This newsletter is supported by ConsenSys Diligence, where I work. We can help with all things smart contract security; auditing, secure development guidance, and training.
Developer - Security Analysis Tools Frontend and Dapp Engineer, MythX Marketing and Brand Manager, MythX Security Engineer and Auditor - Smart Contracts Senior Technical Recruiter Smart Contract Security Business Development Lead Technical Product Manager, MythX
I know, I know, there's a crazy amount of whitespace at the bottom of this newsletter. Proably time to move off of TinyLetter anyways.
- Kauri original title: === Smart Contract Security Newsletter - Number 13 ===
- Kauri original link: https://kauri.io/smart-contract-security-newsletter-number-13/41a7720bc6ce4b6983cf252976fcb7ff/a
- Kauri original author: Maurelian (@maurelian)
- Kauri original Publication date: 2019-02-02
- Kauri original tags: security
- Kauri original hash: QmP8onKX3PFvvEfThW5ccXymGEygG6LoN2tX3ApTwLvUdE
- Kauri original checkpoint: QmSRv329t5c2hpHHf1Yz4XZomqgeBc8LVh9KNJC9z4PVDS