EXPERIMENTS

#021 Dub ✍️
    Dupdate
by Anupam, 01/18/23

Download Link

Dub w/ Signing + Gestures

Overview This dub update features a couple cool things - including swipe forward / back gestures, improved shortcuts for browser navigation, pinch to zoom, and some bug fixes in allowing media (fullscreen, start, stop).

The big push for this week was eth sign - i.e., the ability to actually sign a transaction to complete a blockchain interaction. I got this working with a majority of dApps earlier this week, but have somehow managed to break it entirely (©) literally this morning. I’ll update this post with an update, but it (sorta kinda) works with Uniswap and Uniswap like apps, but I’ve noticed that it’s breaking with Aave.

In summary:

**Process** For the most part, many of the browser changes were quite easy - gestures, shortcuts, media playback, etc.. are all solved problems - so implementation (and a little bit of exploration / time) was all that was needed.

The big time spend for me was Transaction Signing on Ethereum. I got this entirely working in a VERY sketchy way - JavaScript - reading in transaction data, constructing a transaction object, signing that transaction object, and submitting it to the site to send to the blockchain.

I was able to replicate this with Swift and get this working with Uniswap (and most dApps) - but in trying to get it working with Aave (and similar signing dApps), I realized that I wasn’t setting a limit on the gas of the transaction correctly. I nearly got this fixed this morning but somehow totally broke everything else I was trying to do with signing :)

I will post an update here when the issue is resolved.

Next Steps Today, I’m going to finish up Eth Sign