Bitcoin Forum
May 29, 2024, 06:54:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is keysend the best way to transfer custom data between peers with lightning?  (Read 60 times)
nullama (OP)
Hero Member
*****
Offline Offline

Activity: 994
Merit: 957



View Profile
February 04, 2022, 04:49:19 AM
Merited by pooya87 (2), ABCbits (2), dkbit98 (1)
 #1

I'm looking at what would be the best way to send custom data between peers using lightning.

So far, I think keysend is the best way to do it, but the lightning server needs to be configured to explicitly accept these messages. It's not on by default.

It seems that projects like juggernaut use this approach, since they explain how to enable keysend in their github.

Is there any other way?. I'm thinking that maybe lnurl can be used to transfer custom data somehow, but haven't explored that path yet.

███████████████████████████████
███████████████████████████████
█████████
▀▀▀▀▀█▀█▀▀▀▀▀█████████
███
▄▀▀▀   ▄▄▄▄   ▄▄▄▄   ▀▀▀▄███
███████
▀▀▀████▌ ▐████▀▀▀███████
█████
███▀█▀██▌ ▐██▀█▀████████
████
███▀▄▀▄███▌ ▐███▄▀▄▀███████
█████
██▄██▄██   ██▄██▄███████
███████
▄▄▄████   ████▄▄▄███████
██████████
▀▀▀▀   ▀▀▀▀██████████
██████████
▄▄▄▄▄▄▄▄▄▄▄██████████
███████████████████████████████
███████████████████████████████
█▀▀▀











█▄▄▄
#1 RATED CRYPTO
CASINO IN THE WORLD
██ ██ ██ ██ █Trustpilot
▀▀▀█











▄▄▄█
▄█████████████████████████████
██████████████████▀▀█████▀▀████
█████████████████▀█████████▀███
██████████████████████████████
███████████████████████████▄███
█████████████████████████▄▄████
███████████████████████████████
█████████████░░░███████████████
███████████░░░█████████████████
█████████░░████████████████████
█████░░░██████████████████████
███░░█████████████████████████
▀░░░█████████████████████████▀
.
SIGN UP & INSTANTLY
RECEIVE BONUS

[ NO DEPOSIT REQUIRED ]
█▀▀▀











█▄▄▄
▀▀▀█











▄▄▄█
ABCbits
Legendary
*
Offline Offline

Activity: 2884
Merit: 7526


Crypto Swap Exchange


View Profile
February 04, 2022, 11:16:43 AM
Merited by pooya87 (2)
 #2

Is there any other way?. I'm thinking that maybe lnurl can be used to transfer custom data somehow, but haven't explored that path yet.

You could abuse comment field in payRequest to send small amount of data. But both peer must explicitly enable comment field and it's limited by 2000 character on the URL (which also contain payment information), so it's more practical to use comment field to send notes/download link instead.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
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!