Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Connect to the staging network when connecting to the mediator agent #2

Open
ILoomans opened this issue Feb 4, 2021 · 5 comments
Open
Assignees

Comments

@ILoomans
Copy link

ILoomans commented Feb 4, 2021

Feature description

Connect to the staging network when connecting to the mediator agent### Todo

  • In a similar package ARNIMA, there is the ability to connect to the staging network bypassing its genesis transaction. Is there a way to do this using this repo?
@TimoGlastra
Copy link
Member

I'm not sure I understand your question @ILoomans.

The network (indy network?) being used is a separate concept from a mediator. You don't need to connect to a ledger to connect to a mediator and vice versa. Could you elaborate a bit and maybe point to the feature in ARNIMA?

@ILoomans
Copy link
Author

ILoomans commented Feb 4, 2021

Hey @TimoGlastra ,

Apologies, my initial message was not very clear. I am trying to connect to the sovrin staging network. From my research, you connect to the sovrin network by connecting to the mediator agent and then passing the genesis transaction of the desired network you plan to connect to. In the case of the sovrin staging network, it is (https://github.com/sovrin-foundation/sovrin/blob/master/sovrin/pool_transactions_sandbox_genesis) .

In ARNIMA for example if you can pass this as a poolConfig parameter in their connectWithMediator function. As seen here (https://github.com/ayanworks/ARNIMA). I hope this clarifies this.

@TimoGlastra
Copy link
Member

Now I understand.

You can directly connect to the sovrin network from within the mobile app. You don't need to connect to a mediator first. The mediator will receive messages for you and forward them to the mobile device so you can still receive messages from other agents when the mobile device is offline.

It is not very flexible at the moment but you can specify the link to the genesis file of the network you want to connect to in the genesis-utils.ts file:

const url = 'http://dev.greenlight.bcovrin.vonx.io/genesis'

In your case this should be

const url = 'https://raw.githubusercontent.com/sovrin-foundation/sovrin/master/sovrin/pool_transactions_sandbox_genesis'

@TimoGlastra
Copy link
Member

I opened #3 to make this more flexible

@ILoomans
Copy link
Author

ILoomans commented Feb 5, 2021

Thanks for this! helps me very much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants