hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Request for guidance #225

Closed rkirandas closed 2 years ago

rkirandas commented 2 years ago

Is there any walkthrough or guide to setup a cloud agent using Aries dotnet to create an issuer like Faber college / a verifier like acme and the Aries Max as Alice. And also the ledger network should be Sovrin Buildernet.

Any help would be appreciated

x0axz commented 2 years ago

Yoroitchi has created a fantastic Aries POV project called AriesWebApp. It consists of three agents: the Holder Agent, the Issuer Agent, and the Verifier Agent, all of which are developed in ASP.NET MVC and can easily be migrated to ASP.NET Web APIs.

In your Aries Max application, you might use the controller code from Holder Agent.

You don't need anything special for Mediator; simply use this project.

I haven't tried the Sovrin Buildernet, so I can't comment on it. However, if you want to run your own network on a certain IP address, I recommend following this instructions. This document can also be used to deploy agents on servers.

rkirandas commented 2 years ago

@x0axz Thank you . Do you know any goto person for provisioning based on sovrin net?

x0axz commented 2 years ago

@WadeBarnes @swcurran

WadeBarnes commented 2 years ago

@x0axz, @rkirandas, A simpler option for running your own local indy-node network instance is von-network. It can be run on a local or remote machine for test purposes. The Sovrin networks are a great option when you get past the initial learning stage and you have something you want to expand; https://sovrin.org/overview/

rkirandas commented 2 years ago

Yoroitchi has created a fantastic Aries POV project called AriesWebApp. It consists of three agents: the Holder Agent, the Issuer Agent, and the Verifier Agent, all of which are developed in ASP.NET MVC and can easily be migrated to ASP.NET Web APIs.

In your Aries Max application, you might use the controller code from Holder Agent.

You don't need anything special for Mediator; simply use this project.

I haven't tried the Sovrin Buildernet, so I can't comment on it. However, if you want to run your own network on a certain IP address, I recommend following this instructions. This document can also be used to deploy agents on servers.

@x0axz

Do you know how to configure the Web App to run on local ip instead of 192.168.56.101 explicit ( I created a local von nw on 9000 port )

x0axz commented 2 years ago

Here is the guide: https://github.com/hyperledger/indy-sdk#1-starting-the-test-pool-on-localhost

To build a docker on localhost, use 127.0.0.1 $docker build --build-arg pool_ip=127.0.0.1 -f ci/indy-pool.dockerfile -t indy_pool .

To run a docker container on localhost, use 0.0.0.0 $docker run -itd -p 0.0.0.0:9701-9708:9701-9708 indy_pool

Note: Check the urls in Startup.cs and Properties/launchSettings.json to make sure they're correct.

rkirandas commented 2 years ago

@x0axz
should I change AriesTest.txn content to von-network and how about

builder.RegisterAgent(option => { } section in Startup.cs

Have you done von-network version instead of indy

rkirandas commented 2 years ago

@x0axz One more thing the instructions of WebApp https://github.com/Yoroitchi/AriesWebApp is based on ubuntu do you know how to setup it in WIndows?

x0axz commented 2 years ago

Install Libindy on Windows Install Docker Desktop on Windows Install .NET Core 3.1 SDK on Windows

x0axz commented 2 years ago

No, I haven't used Von Network, but yes, changes to the Genesis file are required (Aries.txn).

rkirandas commented 2 years ago

@x0axz I ran the step 8 in https://github.com/Yoroitchi/AriesWebApp Setup Demo but docker run -it -p {port}:{port} --network=host {actor} this command is not working in

I tried to run an Issuer (7000) port by docker run -it -p {port}:7000 --network=host issuer123 showed error docker: Invalid hostPort: {port}.

Also tried docker run -it -p {port}=7000 --network=host issuer123 showed error docker: No port specified: :/tcp.

I raised an issue in https://github.com/Yoroitchi/AriesWebApp Github but no reply

x0axz commented 2 years ago

Replace port with {port} e.g. docker run -it -p 7000=7000 --network=host issuer123

rkirandas commented 2 years ago

@x0axz Were you able to execute the issuer-verifier-holder demo using https://github.com/Yoroitchi/AriesWebApp

I got an error an Verifier Side mentioned https://github.com/Yoroitchi/AriesWebApp/issues/4

x0axz commented 2 years ago

https://github.com/Yoroitchi/AriesWebApp/issues/4#issuecomment-1149517976