This repository is the home of Project Osma, an open source mobile agent for achieving self sovereign identity (SSI).
The primary goals of this project is to provide a common project to progress emerging community standards around mobile agents.
This repository contains a cross platform mobile app (iOS/Android) built using the Xamarin framework in C#. More specifically the two platform specific projects share a common UI through the use of Xamarin.Forms.
SSI is a term coined by Christoper Allen in 2016 with this article, it describes a new paradigm of digital identity. Its premise rests on 10 principles described in the article. In short SSI is about giving a user digital self sovereignty by inverting current approaches to digital identity. Under SSI users are given access and control of their own data and a means in which to use it in a capacity that enables and protects their digital selves.
Agents are essentially software processes that act on behalf of a user and facilitate the usage of their digital identity.
This mobile apps primary dependency is upon the open source project AgentFramework. This framework provides the baseline components for realising agents, Osma extends this framework in the context of a mobile app to realise a mobile agent.
Much of the emerging standards Osma and AgentFramework implement are born out of the Indy-Agent community.
- Clone it locally,
git lfs pullin order to pull the dependent native libraries with LFS. If you do not have this installed please refer to here
- Open osma-mobile-app.sln and build!
For more information on the development practises featured in this repository please refer to here
A Quick Demo
The following demo describes how you can connect with another agent.
- Clone AgentFramework
- From the
/scriptsfolder in the repository run
./start-web-agents.sh- Note this shell script relys on ngrok to run the agents on a publically accessable addresses. Please ensure that your ngrok version is 2.3.28 or higher. You may get an error if the port stated is protected or in use - curl: (7) Failed to connect to localhost port : Connection refused. If this happens simply scan for an open port and change the port number for web_addr in
/scripts/web-agents-ngrok-config.yamland also on line number 6 of
/scripts/start-web-agents.sh. For Macbook open network utility to scan ports.
- Note the public URL's that are outputed by the script with the following text
Starting Web Agents with public urls http://... http://...
- Browse to one of the urls noted above.
- In the rendered UI, click
Create Invitation, a QR code should be displayed.
- In the osma mobile app, deployed to a mobile phone, click the connect button in the top right corner of the connections tab.
- Scan the QR code rendered in the browser with the osma mobile app and click connect in the rendered UI.
- Congrats, you should now be redirected in the mobile app back to the connections page showing a new connection with the AgentFramework web agent!