Hello Optimistic Unlocking

Creating a smoother, faster and a more secure online purchase experience

Sascha Mombartz
Apr 17, 2019 · 4 min read
Image for post
Image for post

At Unlock we’re all about making transactions on the web seamless and effortless. Blockchain transactions have lots of incredible features, from low cost to permission-less, but the strong suit of blockchain technology — its safety features around immutable data also means every transaction needs to be confirmed by miners. This can take time. Generally Ethereum transactions are considered final after they’ve been confirmed by 12 miners, which can take a few minutes and longer depending on how busy the network is. This presents 2 challenges: not only is this slow, but it is very hard to predict accurately.

The reason we do this is to ensure that funds aren’t double spent (accidentally or purposefully). Theoretically users could spend their Ether in one place and while that transaction is still being confirmed spend it in another place. In this instance the transaction that’s confirmed first would go through and the other would fail.

One of our core beliefs is that the challenge most creators are facing is not so much fraud than it is friction. Increasing conversion rates will have a much larger impact on their revenue than fighting the rare cases of fraud. So instead of adding friction or delays to all of the benevolent users in order to stop a few fraudsters, we believe it’s much more beneficial to make it easier to unlock content, even if that means that a small number of people will find ways to “cheat” creators by a few dollars.

We want to trust people! And we’re optimistic that they actually want the content and are willing to pay for it fair and square. Meet Optimistic Unlocking!

We’re working on an algorithm that will determine if a transaction is likely to go through or not, based on the user’s balance, their previous transactions, and a few other factors. If it’s likely to go through, the content immediately unlocks while it’s still being mined and confirmed in the background. We display a status bar and notifications, and a confirmation once the transaction went through.

Image for post
Image for post
A flag indicates the status of the transaction

A confirmed purchase will soon show a new flag with the duration of your subscription and let you click through to your key-chain where you can review your purchases.

Image for post
Image for post

Should something unexpected happen — like the transaction is taking longer than usual to be confirmed, as would happen if funds were accidentally double spent, the content gets automatically locked again. The user is informed that there was an issue with the transaction and is led through the default purchase flow.

We could also detect new transactions sent by users with a pending transaction, and immediately re-lock the content because we then know that their key purchase is likely to not go through!

If the algorithm determined this is a transaction that is unlikely to be confirmed (hopefully a rare case), the user is presented with the default purchase flow where they have to wait for the transaction to be confirmed by 12 miners. Not the worst of scenarios — it just requires a bit of patience.

Image for post
Image for post

In a nutshell, Optimistic Unlocking makes the entire purchasing experience better by allowing instant unlocking while still maintaining a high degree of security. A much nicer user experience gives users more freedom and creators more conversion, all with minimal risk.

That’s Optimistic Unlocking — and one step towards our bigger goal of removing barriers in the purchasing flow. We hope you find this mechanism just as exciting and useful as we do and we’d love to hear from you — email us, or join the conversation on telegram.

Unlock is building an open, decentralized protocol that will help anyone make money from their work, without going through a middleman. We’re looking for engineers, collaborators, and partners. Click here to learn more.

Unlock

The unlock protocol is a new business model for the web

Sascha Mombartz

Written by

Maker, shaker, braker. Non citizen. community at closeknit.co, design at officeforvisualaffairs.com, art at trarara.com

Unlock

Unlock

The unlock protocol is a new business model for the web

Sascha Mombartz

Written by

Maker, shaker, braker. Non citizen. community at closeknit.co, design at officeforvisualaffairs.com, art at trarara.com

Unlock

Unlock

The unlock protocol is a new business model for the web

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store