Satellite/Mesh Network

 

Mesh Network

Blockstream and goTenna recently announceda project that provides an excellent demonstration of how a gateway between different networks can leverage the benefits of both. The TxTenna-python project integrates a goTenna Mesh device with an off-grid Bitcoin full node connected to the Blockstream Blocksat satellite system.
What this means for users is that they will be able to receive blockchain data to confirm transactions via a satellite and send new signed bitcoin transactions via the goTenna Mesh network without ever having a direct internet connection. This enhances transaction privacy and provides an alternative transaction channel when there’s a natural disaster or other type of outage that typically would leave Bitcoin users or merchants unable to operate.

Example Applications

Example Python applications are available at the Blockstream Satellite examples directory as a reference regarding how to implement the interaction with the API. There is one application specifically for sending data to the API, called “API data sender”, and another application for reading the API data acquired by the Blockstream Satellite receiver, called “API data reader”. Additionally, there is one application that allows testing API data reception directly through the internet, without the actual satellite receiver hardware, called “demo receiver”. Refer to the documentation in the given link.

REST API

Each call to an API endpoint responds with a JSON object, whether the call is successful or results in an error.

The code samples below assume that you’ve set SATELLITE_API in your shell to the public base URL of your server.

POST /order

Place an order for a message transmission. The body of the POST must provide a file containing the message and a bid in millisatoshis. If the bid is below an allowed minimum millisatoshis per byte, an error is returned.

For example, to place an order to transmit the file hello_world.png with an initial bid of 10,000 millisatoshi, issue an HTTP POST request like this:

curl -F "bid=10000" -F "file=@/path/to/upload/file/hello_world.png" $SATELLITE_API/order

If successful, the response includes the JSON Lightning invoice as returned by Lightning Charge’s POST /invoice and an authentication token that can be used to modify the order. Within the metadata of the Lightning invoice, metadata is included providing: the bid (in millisatoshis), the SHA256 digest of the uploaded message file, and a UUID for the order.

{"auth_token":"d784e322dad7ec2671086ce3ad94e05108f2501180d8228577fbec4115774750","uuid":"409348bc-6af0-4999-b715-413675

Select Devices and hardware to purchase these necessary components

Leave a Reply

Your email address will not be published. Required fields are marked *