, 10 tweets, 4 min read
1/ With Lntenna-python you can send a @blockstream Satellite message from an off-grid node, using a Submarine Swap over @goTenna mesh network:
2/ To send a message to most of the global landmass from an off-grid device - with no direct internet connection - we leverage the Blockstream Satellite Transmission Service
3/ Because payment for the Blocksat service is via #lightning and our off-grid device only has a full #bitcoin node, we need somebody else to *trustlessly* pay on our behalf...
4/ A Submarine Swap enables us to pay a lightning invoice directly with bitcoin, and to verify locally ourselves that in order to claim the bitcoin we sent, the Submarine Swap provider MUST pay the lightning invoice first, sending our message to the world.
5/ @alexbosworth's Submarine Swap Service allows us to do just that via a convenient API
6/ First the Lntenna-python Client will request a quote from the Gateway server. The Gateway will query Blockstream and submarineswaps.org on its behalf, and return the lightning invoice and submarine swap quote via the mesh
7/ The client can decode the lightning invoice and verify the signatures match the hardcoded pubkeys from Blockstream. It can also decode the submarine swap redeem script to ensure that the submarine swap provider MUST fulfil the invoice to claim (spend) the bitcoins we send them
8/ When the client accepts the quotations, Lntenna-python will generate a bitcoin transaction to satisfy the swap quote. The raw bitcoin transaction is sent to the Gateway via the mesh, and uploaded to the bitcoin P2P network.
9/ When the swap is executed, the swap provider will return to us the preimage of the lightning invoice, which we can validate against the lightning invoice on the mesh client, to verify the invoice was paid.
10/ You can read more about the full process and find links to the code repo in this blog post:
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to wi͛llcl-ark
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!