Skip to content
Mesh Communications in Peer-to-Peer Network for Cannabis Software
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Peer-to-Peer Service for Cannabis Software

A very simple Slim/PHP application to service P2P Communications

This application is implemented as a service that your cannabis software would operate to communicate with other cannabis software. It provides a method for peer discovery, trust establishment, key exchange and data exchange.


It should be quite simple, PHP is like, everywhere man.

git clone ./
composer update
cp ./etc/apache2.conf /etc/apache2/apache2.conf

More information is in the file.


You, can peer or directly with any known peer.

As a "Node0", does some company and service validation before adding you to list of registered providers. The list is published to and follows the same specification that any of the other peers would. Peers are all free to implement their own methods for establishing trust and verifying other peers.

From that connection, you can discover the wider network.

Establishing Trust

Exchange your secret key with a Peer you wish to trust, this can be done out of band, we recommend using Keybase. Once the secret is shared a Peer will use it to sign requests.

Signing Requests

Simply use your hashed key with a hash of a canonical request. You have now joined this peer, and all requests to this peer must be signed with your $SECRET as an HMAC. See (./doc/

Requesting Information

Once registered you fetch the providers list to expand your peer group. When your software or users need to interact with another system, you simply ask them for details through the common API.

Publishing Information

This service will repspond to the base Network layer data of the system. Each provider would implement their own interfaces in this application to interact with their own APIs or database.

You can’t perform that action at this time.