Backend developer that works on blockchain rather frequently
Dynamic Gelato Tasks
I’ve been playing around with some smart contract automation through Gelato. The integration is pretty straightforward, at ZED we’ve been using it to automate some parts of our system in a reliable and decentralized way. One normal use case for this type of jobs is to iterate over a queue until you have an item that meets a certain criteria. You can build a mechanism that works as a FIFO queue very easily with OZ’s EnumerableSet, for example. I want to talk about a very obvious problem with implementing these type of systems on a blockchain like Ethereum (or EVM-based). These jobs will be, most of the time, slow. Why? Because of the nature of the exection. Txs, unless handled in a concurrent way, will be working one by one. Don’t expect 10s of txs being executed at the same time. ...
Simple EIP712 Verifier
EIP712 is a great way to validate off-chain signatures in smart contracts with some centralization compromise. Repo link at the bottom. Quoting from the official proposal here Signing data is a solved problem if all we care about are bytestrings. Unfortunately in the real world we care about complex meaningful messages. Hashing structured data is non-trivial and errors result in loss of the security properties of the system. As such, the adage “don’t roll your own crypto” applies. Instead, a peer-reviewed well-tested standard method needs to be used. This EIP aims to be that standard. ...