DID Messaging: A Batphone for Everyone

Phil Windley
Jun 19, 2019 · 4 min read

Summary: DID Messaging can provide a secure, authenticated, and verified channel for every relationship you have.

In my last post, I wrote about a demo given by BCGov, Spark NZ, and Streetcred ID at the last Internet Identity Workshop. That demo caused a lot of people to download and try out Streetcred ID’s digital wallet. One of the features that Streetcred ID built into their wallet was peer-to-peer messaging based on DID Messaging and that led to some interesting insights.

A Brief Primer on DIDs

If you’re not familiar with DIDs, take a minute to go read my article on Decentralized Identifiers from earlier this year. I’ll summarize the relevant parts here:

DIDs are inexpensive to create, so best practice is to create a new DID for everyone with whom you create a digital relationship. The exchange of these so-called “peer DIDs” thus creates a mutually-authenticated relationship between the participants, where each can use the public key associated with the other’s DID to authenticate them.

The wide use of peer DID exchange creates a network of peer-to-peer relationships that are not only mutually authenticated but can exchange encrypted messages with each other. This capability requires the use of a DID Messaging protocol like the one found in the open-source Hyperledger Aries codebase [1] that forms the basis for peer-to-peer interactions in the Sovrin network. The software that exchanges these messages for each party is called an “agent”.

DID Messaging

As I mentioned, the Streetcred ID digital wallet supports peer-to-peer messaging through Sovrin P2P agents. This is something any wallet based on Aries and Sovrin could do, but as far as I know, Streetcred ID’s wallet is the first to explore this capability.

After IIW, a friend of mine, Tim Bouma, was talking about the P2P messaging in the Streetcred wallet. He hadn’t been at IIW, but I opened my wallet and created an invitation for Tim and sent it to him in a Twitter DM.

Tim accepted the invitation, but how could I be sure it was him — that Malory hadn’t intercepted the invitation I sent Tim and inserted himself in the middle of the communication? Fortunately, the wallet had a solution. I was able to ask Tim to prove things about himself based on credentials he had in his wallet.

Once Tim has proven his email address to me from a credential, I was more sure I was really connected to Tim. For a higher value exchange, I could have asked for other information from Tim until I was sure that it was really him on the other end. With that, we were able to exchange messages. The software took care of encrypting our communication and ensuring that my discussion with Tim was both protected and to him alone.

The Batphone

After this exchange, Vic Cooper likened DID-based P2P messaging to the Batphone. When Batman picks up the Batphone to talk with Commissioner Gordon, Commissioner Gordon doesn’t start off the conversation with “Who am I speaking to?”, “Can you give me your account number?”, “What’s your date of birth?”, or “What street did you live on in Junior High?” When Commissioner Gordon picks up the Batphone, he knows it’s Batman on the other end. Only Batman can call on the Batphone.

So DID Messaging is like having a Batphone for every digital relationship you have. You and they know they’re communicating with the right party [2]. All the messages are protected from eavesdroppers.

DID Messaging could revolutionize how we talk to each other and how we communicate with businesses.

DID Messaging is the foundation for verifiable credential exchange, but is more general purpose and can be used to reliably and securely exchange messages with anyone else who has a digital wallet that supports DIDs [3].


Originally published at http://www.windley.com.

The Startup

Get smarter at building your thing. Join The Startup’s +794K followers.

Sign up for Top 10 Stories

By The Startup

Get smarter at building your thing. Subscribe to receive The Startup's top 10 most read stories — delivered straight into your inbox, once a week. Take a look.

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Phil Windley

Written by

I build things; I write code; I void warranties

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +794K followers.

Phil Windley

Written by

I build things; I write code; I void warranties

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +794K followers.

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