cyphernode icon indicating copy to clipboard operation
cyphernode copied to clipboard

Validate payment request endpoint

Open FrancisPouliot opened this issue 7 years ago • 1 comments

What I imagine is a "Bitcoin payment destination endpoint".

  • The app sends whatever Bitcoin address user enters
  • We check all the possibilities
  • Returns, if valid: type
  • Returns, if we don't find a valid type: invalid

What do look for?

  • is it a valid non-p2sh address
  • Is it a P2SH-wrapped segwit address (can we know this?)
  • Is it a bech32 address?
  • Is it a Bolt 11 invoice?
  • Is it PayNym?
  • Is it a valid BIP21 URI?

We should be able to do this with the existing PyCoin library and C-Lighinthning, otherwise we should look at Bitcoin-JS or other libs.

FrancisPouliot avatar Sep 26 '18 18:09 FrancisPouliot

Is this done or still WIP @Kexkey? 🙏

thibistaken avatar May 05 '25 13:05 thibistaken