Wallet Framework for .NET is an open framework for building digital identity wallets. The framework was initiated as Aries Framework .NET in the Hyperledger Foundation and was forked to express the goal to broaden the supported identity protocols, especially with regard to OID4VC and SD-JWT.
Protocol | Link | State | ||
---|---|---|---|---|
OpenID for Verifiable Credential Issuance | OID4VCI | :construction: | ||
- Pre-Authorized Code Flow | Pre-Auth-Flow | :white_check_mark: | ||
- Authorization Code Flow | Auth-Flow | :construction: | ||
- Holder Binding / Key Binding | KB-JWT | :white_check_mark: | ||
- Wallet Attestation | Wallet Attestation | :construction: | ||
- Issuer Authentication | Issuer Authentication | :construction: | ||
- Demonstrating Proof of Possession | DPoP | :construction: | ||
OpenID for Verifiable Presentations | OID4VP | :construction: | ||
- Same-Device Flow | Same-Device | :white_check_mark: | ||
- Cross-Device Flow | Cross-Device | :white_check_mark: | :white_check_mark: | |
- Verifier Authentication | Verifier Authentication | :construction: | ||
Self-Issued OpenID Provider v2 | SIOPv2 | :construction: |
AIP 1.0 | Protocol | State |
---|---|---|
0019-encryption-envelope | :white_check_mark: | |
0160-connection-protocol | :white_check_mark: | |
0036-issue-credential | :white_check_mark: | |
0037-present-proof | :white_check_mark: | |
0056-service-decorator | :white_check_mark: | |
0025-didcomm-transports | Http supported | |
0015-acks | Partially supported | |
0035-report-problem | Partially supported |
AIP 2.0 | Protocol | State |
---|---|---|
0023-did-exchange | :white_check_mark: | |
0048-trust-ping | :white_check_mark: | |
0095-basic-message | :white_check_mark: | |
Credential Format | Link | State |
---|---|---|
AnonCreds 1.0 | Anonymous Credential Protocol | :white_check_mark: |
SD-JWT-based Verifiable Credentials | SD-JWT VC | :construction: |
The framework fully leverages the .NET Core hosting model with full integration of dependency injection, configuration and hosting services.
Using your favorite editor, create new web project. You can also create a project from the console.
dotnet new web -o AriesAgent
To setup your agent use the Startup.cs
file to configure the framework.
Use the IServiceCollection
extensions to add the dependent services to your application in the ConfigureServices(IServiceCollection services)
method. Upon startup, the framework will create and configure your agent.
services.AddAriesFramework(builder =>
{
builder.RegisterAgent(options =>
{
options.EndpointUri = "http://localhost:5000/";
});
});
Note: If you'd like your agent to be accessible publically, use Ngrok to setup a public host and use that as the
EndpointUri
. When changing the endpoints, make sure you clear any previous wallets with the old configuration. Wallet data files are located in~/.indy_client/wallet
For a list of all configuration options, check the AgentOptions.cs file.
When running web applications, register the agent middleware in the Configure(IApplicationBuilder app, IWebHostEnvironment env)
method. This will setup a middleware in the AspNetCore pipeline that will respond to incoming agent messages.
app.UseAriesFramework();
That's it. Run your project.
With Docker installed, run
docker-compose up
This will create an agent network with a pool of 4 indy nodes and 2 agents able to communicate with each other in the network. Navigate to http://localhost:7000 and http://localhost:8000 to create and accept connection invitations between the different agents.
To run the unit tests, the following dependencies also must be installed:
Follow the build instructions for your OS on the Hyperledger Indy SDK Readme.
For macOS, if you get a 'indy' DLL not found exception
, move the built libindy.dylib
file to the test/Hyperledger.Aries.Tests/bin/Debug/netcoreapp3.1/
directory to explicitly add it to the path.
docker build --build-arg pool_ip=127.0.0.1 -f docker/indy-pool.dockerfile -t indy_pool docker/
docker run -itd -p 9701-9709:9701-9709 indy_pool
# replace <ip_address> with server IP address
docker build --build-arg pool_ip=<ip_address> -f docker/indy-pool.dockerfile -t indy_pool docker/
docker run -itd -p <ip_address>:9701-9709:9701-9709 indy_pool
First, edit the keyword in the scripts/tester.sh
file to select the tests you want to run. Then, run the script
scripts/tester.sh
This Repository includes a github actions pipeline which builds and releases the wallet framework whenever a Pull Request is submitted or a merge to the main branch happens. When the build and release process is triggered by a pull request the build version has a "pr" suffix. If it is triggered by a merge towards the main branch the build version has a "rc" suffix. (e.g. 2.0.0-pr.x.x or 2.0.0-rc.x)
The build is accessible through the Open Wallet Foundation nuget feed.