cyphernode
cyphernode copied to clipboard
Validate payment request endpoint
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.
Is this done or still WIP @Kexkey? 🙏