connecting

command module
v0.0.0-...-82da231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 15 Imported by: 0

README

Running the example

Start a VON-network ledger

Make a checkout of github.com/bcgov/von-network. Then run:

./manage start --logs

This starts 4 Indy nodes and a von-webserver. The von-webserver has a web interface at localhost:9000 which allows you to browse the transactions in the blockchain.

Starting instances

Make sure the command aca-py is available in the terminal where you execute the example.

Starting Alice

$ go run examples/connecting/main.go -port 4000 -name Alice

It will start a webserver for receiving webhook calls on port 4000. ACA-py will be started and will be available on port 4001 (that's the port ACA-py instances communicate over), and the ACA-py admin interface will be available on port 4002 (that's the port where Swagger is available and where your controller connects to).

Starting Bob

$ go run examples/connectin/main.go -port 4003 -name Bob

The same goes for Bob, but then with port 4003, 4004 and 4005.

Connecting instances

After entering the name for your instance, you can choose a couple of options:

Options:
	(1) Create invitation
	(2) Receive invitation
	(3) Accept invitation
	(4) Accept request
	(5) Send ping
	(6) Send basic message
	(7) Query connections
	(exit) Exit

First, create an invitation with Alice. After that receive the invitation with Bob, then accept the invitation with Bob. Finally, accept the request with Alice. When the connection is established, a ping and a basic message can be sent from one agent to the other.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL