Bitcoin Forum
May 06, 2024, 04:44:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Integrating Bitcoin payments directly into network protocols  (Read 172 times)
vfCM (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 34


View Profile
May 03, 2022, 08:07:12 AM
Merited by LoyceV (4), Welsh (4)
 #1

The ability to attach payments to IP packets, or web API calls, would be a great improvement over the status quo. This would be a strong spam prevention measure, and allow prioritization of higher-value traffic. It would also allow direct monetization of APIs without complex user management and accounting.

I keep trying to envision how this would be implemented in practice. Waiting for a new Bitcoin block is obviously prohibitively slow. The Lightning Network comes to mind as an alternative. However, separately routing payments over the Lightning Network, in parallel to operation of an IP network or web API stack, is inefficient---why establish a route in the Lightning network when a route already exists in the form of the Internet itself?

Instead, I would like the ability to combine the routing of payments, with the traffic delivering the protocol itself.

A concrete example would be an extension of SMTP that allows a Bitcoin-based postage to be attached to every email sent.

A route already exists between the payer and the payee, or else the SMTP request could not be initiated.

Ideally, the SMTP server could indicate that postage is required, and give an address (a Lightning address?) to which payment should be addressed. While it is possible to separately make the payment over lightning or (I suppose) directly on the blockchain, it would be much more efficient if the payment could be encoded directly within the SMTP session currently running.

Moreover, integration of such payments into lower-level protocols such as IP itself would be infeasible if separate Lightning or base layer payments are required---in such a case, direct integration with the protocol seems to be essentially mandatory.

Has any work been done toward making such things possible?
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714970658
Hero Member
*
Offline Offline

Posts: 1714970658

View Profile Personal Message (Offline)

Ignore
1714970658
Reply with quote  #2

1714970658
Report to moderator
1714970658
Hero Member
*
Offline Offline

Posts: 1714970658

View Profile Personal Message (Offline)

Ignore
1714970658
Reply with quote  #2

1714970658
Report to moderator
1714970658
Hero Member
*
Offline Offline

Posts: 1714970658

View Profile Personal Message (Offline)

Ignore
1714970658
Reply with quote  #2

1714970658
Report to moderator
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
May 04, 2022, 06:10:50 AM
Merited by ABCbits (2)
 #2

I actually do not believe that there has been any progress made in this area in particular. I am also against the conventional solution of creating a web service to handle payment requests since such services will inevitably become centralized, and then you have the second issue of how to get people to use the web service in addition to using Bitcoin technology.
So, it seems that the most practical way to handle this situation is using, as you said, the Lightning Network.
A few months ago I was contemplating the feasibility of creating a smart contract in a similar form to the HLTC kinds. It would be for emulating "subscriptions" that you can make with CCs and Paypal and it would arrange for a certain amount of BTC to be sent to a particular address every X days for a period of time or until some party receives an "unlocked" contract that was previously locked (how LN contracts are broken, if my memory serves me right). I think it's possible to at least make a design for this.
The advantage of such a service would mean that its adoption is synonymous with LN adoption, so no need to advertise a separate 3rd party service.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
May 07, 2022, 11:17:27 AM
 #3

The ability to attach payments to IP packets, or web API calls, would be a great improvement over the status quo. This would be a strong spam prevention measure, and allow prioritization of higher-value traffic. It would also allow direct monetization of APIs without complex user management and accounting.

Aside from what @NotATether said, isn't it more practical to buy the bandwidth or API calls in bulk for larger scale usage? Usually it's cheaper and you only need to make the payment monthly/yearly (which meant fewer log on accounting book).

Now that I think about it, there wouldn't even be a practical (and portable) way to pass the transaction info of such a payment to a JSONRPC (or some other kind of protocol) service. Because these kinds of protocols are made by standards bodies, and for something like this request I don't see themextending their standards for that.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5818


not your keys, not your coins!


View Profile WWW
May 08, 2022, 02:37:58 PM
Merited by ABCbits (2)
 #4

Instead, I would like the ability to combine the routing of payments, with the traffic delivering the protocol itself.

[~snip~]

Has any work been done toward making such things possible?
The issue with this idea is that it stems from an oversimplification in basic explanations of the Bitcoin and Lightning networks. You could add a signed transaction or a channel state commitment in a low-layer protocol, but it won't be possible to 'combine' it the way you think.
I ignore Bitcoin on-chain payments in this context, because you'd need to wait for a few minutes to at least get one confirmation; by then, the HTTP request (or TCP connection, whatever protocol you like to integrate with) will already have timed out.

Lightning payments aren't 'routed' like IP packets; they're actually sequences of channel state updates in a series of channels that connects a sender to a receiver. Therefore, you can't integrate the 'routing of payments' into the 'traffic delivering the protocol itself', unless all network devices that pass along the 'low-level protocol traffic' have Lightning channels between each other.

Hence, what you propose is not possible, and I'm not aware of any work trying to make it possible, by forcing network devices to own Bitcoin and open a channel to each other network device they're connected to. Does this make sense?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
vfCM (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 34


View Profile
May 11, 2022, 10:34:31 PM
 #5

Instead, I would like the ability to combine the routing of payments, with the traffic delivering the protocol itself.

[~snip~]

Has any work been done toward making such things possible?
The issue with this idea is that it stems from an oversimplification in basic explanations of the Bitcoin and Lightning networks. You could add a signed transaction or a channel state commitment in a low-layer protocol, but it won't be possible to 'combine' it the way you think.
I ignore Bitcoin on-chain payments in this context, because you'd need to wait for a few minutes to at least get one confirmation; by then, the HTTP request (or TCP connection, whatever protocol you like to integrate with) will already have timed out.

Lightning payments aren't 'routed' like IP packets; they're actually sequences of channel state updates in a series of channels that connects a sender to a receiver. Therefore, you can't integrate the 'routing of payments' into the 'traffic delivering the protocol itself', unless all network devices that pass along the 'low-level protocol traffic' have Lightning channels between each other.

Hence, what you propose is not possible, and I'm not aware of any work trying to make it possible, by forcing network devices to own Bitcoin and open a channel to each other network device they're connected to. Does this make sense?

Yes, makes sense. Would be an interesting experiment, but not compatible with current internet architecture. Though I suppose Internet routing could be augmented with lightning channel information, meaning links with a parallel lightning channel could take advantage of that fact, and those without such a channel, would not---but that's way above my pay grade.

I actually think SMTP postage over Lightning would be worth trying. Imagine getting paid to read (or at least receive) marketing emails! Sorting emails by postage would be an alternative to all the machine learning spam filtering. It would also reward email users for the cost to their attention, and provide a natural funding mechanism for mail servers.

The main difficulty would seem to be establishing enough of a network effect that it could get traction. If receiving mailservers could tap into lightning and get paid to receive emails they're already receiving---that could be an enticement to participate.
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5818


not your keys, not your coins!


View Profile WWW
May 11, 2022, 11:14:48 PM
 #6

I actually think SMTP postage over Lightning would be worth trying. Imagine getting paid to read (or at least receive) marketing emails! Sorting emails by postage would be an alternative to all the machine learning spam filtering. It would also reward email users for the cost to their attention, and provide a natural funding mechanism for mail servers.
Actually closely related; having to pay to send an email was one of the first ideas that came up when the discourse started about state channel networks on top of Bitcoin. What you describe does sound like it would require some way of Lightning integration into SMTP or SMTP on top of Lightning. We shall be careful not to craft a solution for which no problem exists, though. Because that's how you start a project that is deemed from the start.. Grin

You can definitely build another layer on top of L2 (Lightning), which is the idea behind the RGB protocol which was recently 'reimplemented' in a way by the company Lightning Labs. It's all still early and I'm not sure what you can do with it as of today, but it's the closest we have to what you described there.

A pretty high level overview about RGB: https://github.com/LNP-BP/presentations/blob/master/Presentation%20slides/RGB%20%26%20Spectrum%20explanation%20for%20business.pdf

The main difficulty would seem to be establishing enough of a network effect that it could get traction. If receiving mailservers could tap into lightning and get paid to receive emails they're already receiving---that could be an enticement to participate.
I don't think this will be happening, but maybe 'email over LN' through RGB smart contracts or so could work.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!