-
Notifications
You must be signed in to change notification settings - Fork 940
[feature]: Sign message from address (Ocean Mining bolt12 payouts) #8199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think I figured this out. I still need to test it and polish some details. |
@chrisguida Forget my deleted comment it doesn't work because additional info is necessay |
@vincenzopalazzo: who pays for lightning fees when Ocean sends payouts? Imagine the mean fee for sending a payment was 1%, forget for a moment the pool operation fees for simplicity.
The first case is the usual customer-server implicit agreement: the baker asks you 1$ for the bread and he doesn't But on the other hand, in the case of Ocean, if the user of the pool is owned X sats for his work, That said, maybe we should have an option in xpay to indicate the recipient pays for fees..., ie. the sending amount |
@Lagrang3 IIRC Ocean is currently eating these fees, but you are correct that it doesn't seem sustainable. Of course Ocean doesn't pay fees for on-chain payouts since it mines these blocks itself, but Lightning is a different beast. And agreed that an option for the recipient to pay fees would be broadly useful. |
If the recipient pays for lightning fees, there is a change in the incentives: |
just going to defer to @vincenzopalazzo on this one |
CLN is the only officially supported way to receive Lightning payouts on Ocean, so a totally reasonable thing for a small pleb miner to do would be to use an on-chain address generated from CLN as the Ocean username, then sign a message from that on-chain address to verify the receiving bolt12 for Lightning payouts.
Note that LND already has this functionality:
Currently on the CLN the process is:
lightning-cli listaddresses | grep -C5 <address>
bitcoin-cli deriveaddresses "wpkh(<xpriv>/0/0/<keyidx>)#checksum"
(change the checksum to the one bitcoin-cli suggests)pip install bitcoinlib
python
bitcoin-cli signmessagewithprivkey <privkey_wif> '<ocean_json_message>'
This is pretty much limited to just devs, and it would be great to get decentralized template construction into the hands of less technical pleb miners!
cc @vincenzopalazzo
The text was updated successfully, but these errors were encountered: