Account Coordinator: A Proposal for the Future of Wallets
Tags: cosmosnetwork, blockchain, ethereum, wallet
Published: 2021-01-31 06:55:16

---
title: Account Coordinator: A Proposal for the Future of Wallets
published: true
date: 2021-01-29 17:35:48 UTC
tags: cosmosnetwork,blockchain,ethereum,wallet
canonical_url: https://medium.com/coinmonks/account-coordinator-a-proposal-for-the-future-of-wallets-9fc54032a202
---

![](https://cdn-images-1.medium.com/max/1024/0*QGAs-LrPxxUoRQsZ)<figcaption><a href="https://www.albrow.com/things">https://www.albrow.com/things</a></figcaption>

In the forum post [Cosmos Hub as Universal Wallet](https://forum.cosmos.network/t/cosmos-hub-as-universal-wallet/3877/2), I proposed a futuristic relationship between users and blockchains that involves a combination of current and upcoming features of the Cosmos-SDK: [“Sub-keys” (or Msg Authorization)](https://github.com/cosmos/cosmos-sdk/issues/7074); the Interchain Standard called Interchain Accounts ([ICS-27](https://github.com/cosmos/ics/tree/master/spec/ics-027-interchain-accounts)); and the security of the Cosmos Hub itself (or theoretically any other secure network).

That was a sort of full-on expanding-brain proposal but it got me thinking about what steps are actually needed to take us into a future where it’s safe and easy to interact with many interconnected blockchains. I propose a path forward that results in a separation of concerns and a new class of wallet, called an Account Coordinator.

![](https://cdn-images-1.medium.com/max/500/0*05HEzJ4k1SQ__AX3)

### State of Wallets Today

To date we’ve seen a lot of wallet solutions that are trying to do many things at once. So far the list of responsibilities is still manageable, but as we move into a world where users will want to interact with many networks, the current architecture won’t scale. At a high level, the various responsibilities of a wallet include:

- **Private Key Management**
- **Application Interface**
- **Transaction Management**

Ethereum has experienced some of these growing pains already, since a turing complete virtual machine like the EVM allows for almost any variety of application to exist and they all expect to work from a single wallet. While Ethereum wallets have come up with protocols and clever solutions to provide interfaces for a wide variety of applications, they still expect these to be from a common EVM infrastructure. As we see the paradigm of application specific blockchains become a reality, connected via [IBC](http://cosmos.network/ibc), the bounds of how Ethereum has handled a variety of applications will break down.

The practical way forward is a separation of concerns. Let these three tasks exist as standalone solutions, where each can focus on doing its sole task well. This will reveal the need for a new kind of service that I’ve been calling an **Account Coordinator**.

![](https://cdn-images-1.medium.com/max/1024/0*Et_9HBsWN-rzrXwH)

### Private Key Management

Cryptography is hard. If you’re not an expert, the chances of making a mistake are high and the fallout can be catastrophic. It’s unfair to expect all wallet and dApp developers to have this expertise in-house. Traditional apps have already recognized this and often separate concerns by delegating authentication to third parties using the oAuth standard.

You might think this is the only real responsibility of a wallet — to keep your keys secure. But as I go over the other common features you’ll see this is far from it. In fact it’s often the capacity that wallet builders are least qualified for. Cryptography and security experts should be responsible for developing industry standard solutions and implementing best practices for key storage. This should be their entire business, however instead we’ve seen wallets implementing “just good enough” security practices — but when it comes to cryptography this _isn’t_ just good enough.

If the responsibility of key storage was removed from the wallet, it may result in a larger variety of security solutions that rely on different assumptions and provide different features. There are already a number of private key solutions that go beyond traditional software storage: hardware security modules like those in [Ledger](https://www.ledger.com/), or other cryptographic techniques such as shamir secret sharing used by [Torus](https://tor.us/), threshold schemes like those used by [ZenGo](https://zengo.com/), multi-party computation, or novel zero knowledge techniques. For the record, I think the space for shared responsibility of custodial key management is also entirely underexplored.

Regardless of exactly how a key is stored, the responsibilities of the storage solution should really stop there. Do one thing and do it well — store the key. Access to the keys should be handled by similarly secure authorization techniques. [WalletConnect](https://walletconnect.org/), or a similar protocol for transporting data between key managers and applications is where further authorization should take place.

![](https://cdn-images-1.medium.com/max/1024/0*6SmNx9HJqJE5o3Wd)

### Application Interface

Today, the range of care a wallet pays towards an application interface is quite wide. On one side of the spectrum, some wallets provide deeply integrated access to application features. [Argent](https://www.argent.xyz/) and [Gnosis Safe](https://gnosis-safe.io/) both support a growing number of custom interfaces on a per application basis. This has been the route for most Cosmos wallets as well, where networks expect a minimum of staking and governance interfaces. Providing a custom interface directly within the wallet means you can ensure a better user experience, but it limits the number of applications the wallet can access and turns the wallet into a bottleneck for new applications.

On the other end of the spectrum are wallets which try to push the bulk of interface responsibilities onto the application developer. Generally wallets inject an API or interface into an application using [web3.js](https://github.com/ethereum/web3.js/) or [cosmJS](https://github.com/cosmos/cosmjs/). Alternatively, the wallet may contain it’s own browser with the API already integrated ([Mist](https://github.com/ethereum/mist), [Metamask Mobile](https://metamask.io/), [Status](https://status.im/), and [Coinbase Wallet](https://wallet.coinbase.com/)). They may also leverage a browser extension to inject the API ([Metamask](https://metamask.io/), [Keplr](https://wallet.keplr.app/)). WalletConnect allows the interface to be transported between mobile and desktop browsers as well as between mobile and mobile. Either way, it’s up to the application developer to access and utilize the wallet API in order to provide a user with signing capabilities. This path removes the wallet as a bottleneck to accessing applications but comes with its own challenges — namely security and a smooth user experience.

A secure authorization technique should be considered to ensure that an application is able to access signing capabilities without overwhelming a user with confirmation screens or receiving authorization for unintentional transactions. MetaMask has been trying to address this by creating a composable, secure interface for keys to communicate with applications called “[Snaps](https://github.com/MetaMask/metamask-snaps-beta)”. It borrows heavily from [Agoric](https://agoric.com/)’s Chief Scientist, [Mark Miller](https://en.wikipedia.org/wiki/Mark_S._Miller)’s work on object capabilities, which encode precise object-level controls that can be transported across environments. Snaps provide the security and standardization needed to connect applications to key managers, but I’d argue Metamask doesn’t go far enough with this architecture, as all three wallet functions may be isolated and composed using this same model.

![](https://cdn-images-1.medium.com/max/1024/0*cdFya1wy0urP5iQy.jpg)

### Transaction Management

While we’ve seen many wallets take on the burden of providing application interfaces, I’d still argue that to date the primary responsibility of wallets has been key management. This has left the third duty of a wallet, transaction management, sorely under resourced. I’d like to see this become the primary role of wallets as the application interface and key management becomes the responsibility of designated third parties.

Transaction management can be thought of as the actual interface between an application and a signing solution. This is the step where a request to perform some action is parsed into a format that can be signed by a private key. It includes communication with the application as well as communication with the key management. In between, the data that needs to be signed should be parsed and displayed to a user in a way that they can understand what they are signing and why. Furthermore the history and status of these signing requests should be recorded and made available to the user.

When using Ethereum, transaction management is tricky because there is essentially only one transaction type (eth\_send) but it includes a data field that can reference any number of methods when aimed at a smart contract. If you’re lucky, the wallet is able to access an [ABI](https://en.wikipedia.org/wiki/Application_binary_interface) file for the specific contract it’s interacting with that allows the data field to be converted into a function name and parameters. An ABI file can also allow the wallet to display the events which were emitted after a transaction was successfully processed. This gets into the territory of a block explorer, which is a full service dedicated essentially to account history — as well as the history of the entire network. To date however, block-explorers are mostly single-minded when it comes to networks.

In the Cosmos space there are many different messages which can be included in a transaction. Each of these messages have different capabilities, but have traditionally been self describing so there was no need for an external ABI file. With the migration to [protobuf](https://docs.cosmos.network/master/core/encoding.html), we’re seeing ongoing discussions on how to preserve the self-describing nature while ensuring all of the performance increases that come with proto. One option will be to use in the protobuf file like an ABI but there are many other solutions [still being explored](https://github.com/cosmos/cosmos-sdk/issues/6513).

Regardless of the network architecture, this is a tricky problem, but one that is essential to ensuring a user can verify what exactly they’re doing. This problem gets further complicated when additional keys are added to the mix. Some wallets already allow you to create many accounts which are all sourced from a common seed with [key derivation paths](https://ethereum.stackexchange.com/questions/70017/can-someone-explain-the-meaning-of-derivation-path-in-wallet-in-plain-english-s#:~:text=Derivation%20paths%20are%20related%20to,keys%20across%20any%20supported%20network.&text=BIP%2D44%20%2D%20the%20derivation%20path%20stuff%20%2F%20algorithms.). This is a helpful feature for users who don’t want to mix up their defi account with their gaming account (or their sketchy dark market wallet). Switching between networks is possible with key derivation, although I don’t know a single Ethereum wallet that allows you to consolidate accounts by supporting multiple seeds and private keys ([Keplr does though](https://wallet.keplr.app/)). This puts the burden on users to keep track of which identity is associated with which key — and often which wallet contains any given key.

![](https://cdn-images-1.medium.com/max/948/0*z_F8QyQpwl-sgEpa)

### Account Coordinator

Transaction management has been under-served and the problem is only growing worse with additional networks and more corresponding keys. It will increase exponentially with the addition of [sub-keys](https://github.com/cosmos/cosmos-sdk/issues/7074) — the ability to assign account capabilities to specific keys. The expanded scope of duty warrants a new name for this role: I’d like to make a case for a new type of wallet that is primarily concerned with being an **Account Coordinator**.

The Account Coordinator’s primary goal is to keep track of which keys have which capabilities on which networks — and how to access the signing capabilities of those keys using protocols like WalletConnect. While it should strive for privacy and anonymity externally, from the user’s perspective, it should give a complete overview of activity across all dApps, key stores, and networks. It may ask for the master public key of a key seed in order to derive all possible public keys. This will allow the Account Coordinator to check all the possible accounts on all the possible networks to see if you’ve ever interacted there. It will detect whether the key is part of a multi-sig, contract based wallet, group module or sub-key. With your confirmation it will start tracking all of these accounts for you, remembering your preferences for which key to use when.

The Account Coordinator should allow you to audit the interactions you’ve had on each application while preserving a coherent sense of self — think about Google’s oAuth telling what services and devices you’ve currently logged into. Ultimately this should look something like a user-centric multi-network block explorer, tracking all of your own keys and coordinating them on your behalf. This will require a lot of contextual knowledge about the multitude of networks you’ve used or may interact with in the future. This context can be gathered from different sources and will depend on exactly which kind of app you’re dealing with. I imagine most information should be coming from the application itself over an interface like WalletConnect.

The Account Coordinator will stand firmly between your keys and the application, it will act as a broker between both parties and will join you in all of your interactions across blockchain based networks. It will be built to serve only you, so while it will have a treasure trove of your information, it will only be accessible at your discretion.

![](https://cdn-images-1.medium.com/max/962/0*9tXRHTexNBdsmma5)

### Next Steps

This proposal is just a feeling I have. I know there are other visions for the future of wallets and I’m looking for feedback and critiques. If you’re interested in discussing this proposal, drop by the [Cosmos Forum](https://forum.cosmos.network/t/account-coordinator-a-proposal-for-the-future-of-wallets/4328) and share your thoughts.

### Post Script: Thoughts on Monetization

When wallets stop trying to do everything at once a number of business models become available. For example, providing a better user experience and holistic account overview allows a wallet to analyze personal activity and offer insights at a price. This information can remain private or may be monetizable with data brokerage applications like [Ocean Protocol](https://oceanprotocol.com/) or other platforms that recognize [data as labor](http://radicalmarkets.com/chapters/data-as-labor/). If the value of the service is great enough users may be willing to just pay a subscription fee, or pay to leverage their information in order to automate their tax filings.

Alternatively this Account Coordinator could offer various other services that users may be willing to pay for. For instance with regard to IBC connected networks, IBC packets are created with IBC transactions but, similar to Ethereum Meta-Transactions, someone has to relay those packets inside of new transactions to their destination networks. An Account Coordinator will be monitoring the creation of the initial transaction and could offer a paid service to ensure IBC relaying is taken care of and paid for.

With the addition of sub-keys it is expected that capabilities within networks will be finely tuned down to a per key permission system. That means that a user should expect to have hundreds if not thousands of keys that — considering best security practices — need to be rotated by various trusted threshold interactions. An Account Coordinator is exactly the entity to make those happen and would easily be able to charge for such a high value service.

One classic model that some Cosmos wallets are already following is to combine with staking services. They can promote their own validator over others and capture user delegations in order to earn staking rewards through a commission rate.

As the designated party who is crafting transactions on behalf of users, the Account Coordinator may want to include a small fee into the transaction, something which is especially easy using the Cosmos SDK where multiple messages can be grouped into a single transaction requiring only one signature. This could be set as a default but disabled and may eventually establish a new norm of tipping your wallet as a thank you.

Wallets have had trouble finding sustainable business models but the future is bright for them. With new capabilities comes new options and with a growing user base the demand will only increase for wallets which find the right balance between security, capabilities and ease of use. Hopefully the Account Coordinator can be a large step in that direction.

My name is [Billy Rennekamp](https://twitter.com/billyrennekamp). I’m the Grants Manager at the [Interchain Foundation](https://interchain.io) focusing on the [Cosmos Network](https://cosmos.network). I’m a co-founder of [**Bin Studio**](https://www.bin.am/), a multidisciplinary research, design and development studio based in Berlin. We built [**Clovers Network**](https://clovers.network/), a novel proof-of-work game supported by the [ECF — Ethereum Community Fund](https://medium.com/u/e860e2166069?source=post_page-----ce69a57d8ae4--------------------------------). I’ve worked on a lot of other great projects including [Gnosis](https://medium.com/u/e7281ad70ea?source=post_page-----ce69a57d8ae4--------------------------------), [ENS Nifty](https://ensnifty.com/), [Meme Lordz](http://memelordz.com/) and [Doneth](https://doneth.org/). If any of that sounds interesting to you, follow my [**twitter**](https://twitter.com/billyrennekamp) **,** my [**github**](https://github.com/okwme) or just [**say hello**](mailto:studio@bin.am) 👋

> Join Coinmonks [Telegram group](https://t.me/joinchat/EPmjKpNYwRMsBI4p) and learn about crypto trading and investing

#### Also, Read

- What is a [Flash loan](https://blog.coincodecap.com/what-are-flash-loans-on-ethereum)?
- The Best [Crypto Trading Bot](https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a)
- [3Commas Review](https://medium.com/coinmonks/3commas-review-an-excellent-crypto-trading-bot-2020-1313a58bec92) | [Pionex Review](https://medium.com/coinmonks/pionex-review-exchange-with-crypto-trading-bot-1e459d0191ea) | [Coinrule review](https://blog.coincodecap.com/coinrule-review-a-perfect-trading-bot)
- [AAX Exchange Review](https://medium.com/coinmonks/aax-exchange-review-2021-67c5ea09330c) | [Deribit Review](https://medium.com/coinmonks/deribit-review-options-fees-apis-and-testnet-2ca16c4bbdb2) |[FTX Crypto Exchange Review](https://medium.com/coinmonks/ftx-crypto-exchange-review-53664ac1198f)
- [NGRAVE ZERO review](https://medium.com/coinmonks/ngrave-zero-review-c465cf8307fc)
- [Bybit Exchange Review](https://medium.com/coinmonks/bybit-exchange-review-dbd570019b71) | [Bityard Review](https://blog.coincodecap.com/bityard-reivew) | [Interdax Review](https://blog.coincodecap.com/interdax-review)
- [3Commas vs Cryptohopper](https://medium.com/coinmonks/3commas-vs-pionex-vs-cryptohopper-best-crypto-bot-6a98d2baa203)
- The Best Bitcoin [Hardware wallet](https://medium.com/coinmonks/the-best-cryptocurrency-hardware-wallets-of-2020-e28b1c124069?source=friends_link&sk=324dd9ff8556ab578d71e7ad7658ad7c) | [BitBox02 Review](https://medium.com/coinmonks/bitbox02-review-your-swiss-bitcoin-hardware-wallet-c36c88fff29)
- [Ledger vs Ngrave](https://blog.coincodecap.com/ngrave-vs-ledger)
- [Crypto Copy Trading Platforms](https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c) | [Bityard copy trading](https://blog.coincodecap.com/bityard-copy-trading)
- [ledger nano s vs x](https://blog.coincodecap.com/ledger-nano-s-vs-x)
- [Vauld Review](https://blog.coincodecap.com/vauld-review) | [YouHodler Review](https://medium.com/coinmonks/youhodler-4-easy-ways-to-make-money-98969b9689f2) | [BlockFi Review](https://medium.com/coinmonks/blockfi-review-53096053c097)
- The Best [Crypto Tax Software](https://medium.com/coinmonks/best-crypto-tax-tool-for-my-money-72d4b430816b) | [CoinTracking Review](https://medium.com/coinmonks/cointracking-review-a-reliable-cryptocurrency-tax-software-5114e3eb5737)
- Best [Crypto Lending Platforms](https://medium.com/coinmonks/top-5-crypto-lending-platforms-in-2020-that-you-need-to-know-a1b675cec3fa)
- [Ledger Nano S vs Trezor one vs Trezor T vs Ledger Nano X](https://blog.coincodecap.com/ledger-nano-s-vs-trezor-one-ledger-nano-x-trezor-t)
- [BlockFi vs Celsius](https://medium.com/coinmonks/blockfi-vs-celsius-vs-hodlnaut-8a1cc8c26630) | [Hodlnaut Review](https://blog.coincodecap.com/hodlnaut-review)
- [Bitsgap review](https://medium.com/coinmonks/bitsgap-review-a-crypto-trading-bot-that-makes-easy-money-a5d88a336df2) | [Quadency Review](https://medium.com/coinmonks/quadency-review-a-crypto-trading-automation-platform-3068eaa374e1)
- [Ellipal Titan Review](https://medium.com/coinmonks/ellipal-titan-review-85e9071dd029) | [SecuX Stone Review](https://blog.coincodecap.com/secux-stone-hardware-wallet-review)
- [BlockFi Review](https://medium.com/coinmonks/blockfi-review-53096053c097) | Earn up to 8.6% interests in your Crypto
- [DEX Explorer](https://explorer.bitquery.io/ethereum/dex) and [Blockchain APIs](https://explorer.bitquery.io/graphql)
- [Crypto arbitrage](https://medium.com/coinmonks/crypto-arbitrage-guide-how-to-make-money-as-a-beginner-62bfe5c868f6) guide: How to make money as a beginner
- Best [Crypto Charting Tool](https://medium.com/coinmonks/what-are-the-best-charting-platforms-for-cryptocurrency-trading-85aade584d80)
- What are the [best books to learn about Bitcoin](https://medium.com/coinmonks/what-are-the-best-books-to-learn-bitcoin-409aeb9aff4b)?

> [Get Best Software Deals Directly In Your Inbox](https://medium.com/coinmonks/newsletters/coinmonks)

[![](https://cdn-images-1.medium.com/max/584/1*BoDnKUyK8p4hitHAJZ5Pdw.png)](https://medium.com/coinmonks/newsletters/coinmonks)

* * *