Lnd: No handling for sending on-chain funds to node's pubkey

Created on 9 Apr 2019  Â·  4Comments  Â·  Source: lightningnetwork/lnd

Background

A user reported to me that they accidentally sent bitcoin to their node's public key as an address, rather than to a deposit address generated by their node (That issue is here: https://github.com/wbobeirne/joule-extension/issues/202). I can imagine this is an easy mistake to make, so it might be nice to account for it. I can think of a few ways to handle this:

  1. Provide an easy way for users to access / rescue funds sent to their node's pubkey.
  2. Don't allow sends to your pubkey (or other node's pubkeys, if this is easy to distinguish) without some kind of flag set.
  3. (Unlikely, but I'll just throw it out there) Differentiate node pubkeys so that they're not valid to send to.

Your environment

  • version of lnd - 0.6.0-rc3
  • which operating system (uname -a on *Nix) - Ubuntu 16.04
  • version of btcd, bitcoind, or other backend - bitcoind

Most helpful comment

FWIW, sending to a plain pubkey _is_ an accepted Bitcoin transaction type. It's actually the very first Bitcoin transaction type.

All 4 comments

FWIW, sending to a plain pubkey _is_ an accepted Bitcoin transaction type. It's actually the very first Bitcoin transaction type.

Happy to pick this one up, I've made a WIP PR that at the moment checks against the users own Pubkey, ideally it would be better to prevent any Pubkeys?

Yeah I think we should instead prevent any direct pubkey sends as the
wallet doesn't watch for this type of output.

On Tue, Apr 9, 2019, 7:51 PM Christopher Coverdale notifications@github.com
wrote:

Happy to pick this one up, I've made a WIP PR that at the moment checks
against the users own Pubkey, ideally it would be better to prevent any
Pubkeys?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/lightningnetwork/lnd/issues/2920#issuecomment-481513000,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA87LvsAMCsqmCkp1aNGXulIdId9aQLmks5vfVGqgaJpZM4clnuC
.

@Roasbeef awesome, I'll update the PR to prevent any pubkeys as dest

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joaodealmeida picture joaodealmeida  Â·  3Comments

Roasbeef picture Roasbeef  Â·  3Comments

Richard87 picture Richard87  Â·  3Comments

Roasbeef picture Roasbeef  Â·  3Comments

joostjager picture joostjager  Â·  3Comments