Coder Social home page Coder Social logo

aries-mediator's Introduction

Usage

Please edit MediatorAgent/configuration.json and update agentPublicEndpoint to be the internet facing URL where this agent can receive requests from.

If you're developing locally, ngrok can be used to create a tunnel to localhost:

$ ngrok http 5000

You can build and run the server on the commandline with dotnet build.

You need to edit configuration.json to know the external URL of the mediator, which you get from ngrok. Make certain that the directory mentioned for the wallet does not exist before running it for the first time.

Then you can run it like this: dotnet run --project MediatorAgent.

Instructions to integrate it with an edge-agent can be found here.

Dependencies

You will need to have libindy v1.14.2 available for dynamic linking.

On MacOS you do this to get it:

$ wget https://repo.sovrin.org/macos/libindy/stable/1.14.2/libindy_1.14.2.zip
$ mkdir libindy-1.14.2
$ cd libindy-1.14.2/
$ unzip ../libindy_1.14.2.zip 
$ cp lib/libindy.dylib /usr/local/lib

It needs libsodium, but with a hack:

$ brew install libsodium
$ brew info libsodium
# check that you have 1.0.18_1
$ cd /usr/local/Cellar/libsodium/1.0.18_1/lib
$ cp libsodium.23.dylib libsodium.18.dylib

Caution

This repository is meant only for demonstration and is nowhere near production ready. The current implementation maintains in-memory queues for each identity it has to route messages for and attaches subscribers to it when the corresponding identity connects.

A more robust way for instance, would be to persist the in-memory queues to be more resilient to failures and partitioning based on identity ids.

License

This software is derived from the MediatorAgentService sample. It carries the same license.

Apache License Version 2.0

aries-mediator's People

Contributors

gnarula avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.