Skip to content

Latest commit

 

History

History
100 lines (80 loc) · 3.9 KB

Formats.org

File metadata and controls

100 lines (80 loc) · 3.9 KB

On-Chain

Addresses

Legacy

  • P2PKH
  • P2SH

Bech32 and Bech32m

Spec: BIP-173

On bitcoin wiki

  • P2WPKH SegWit
  • P2WSH
  • P2TR Taproot

BIP-72 (and BIP-21) URI Scheme

  • BOLT-11 allows fallback to BIP-21 with the key ‘lightning’ and the value equal to the BOLT-11 encoding

Lightning

BOLT-11 Invoice

Example: lnbc20m1pvjluezsp5zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygshp58yjmdan79s6qqdhdzgynm4zwqd5d7xmw5fk98klysy043l2ahrqspp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqfp4qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3q9qrsgq9vlvyj8cqvq6ggvpwd53jncp9nwc47xlrsnenq2zp70fq83qlgesn4u3uyf4tesfkkwwfg3qs54qe426hp3tz7z6sweqdjg05axsrjqp9yrrwc

DescriptionInvoice protocol for lightning payments
SpecBOLT-11
StatusFinal
Regex(lightning:)?ln[qpzry9x8gf2tvdw0s3jn54khce6mua7l]+

BOLT-12 Offer

Example: lno1pqqnyzsmx5cx6umpwssx6atvw35j6ut4v9h8g6t50ysx7enxv4epgrmjw4ehgcm0wfczucm0d5hxzagkqyq3ugztng063cqx783exlm97ekyprnd4rsu5u5w5sez9fecrhcuc3ykqhcypjju7unu05vav8yvhn27lztf46k9gqlga8uvu4uq62kpuywnu6me8srgh2q7puczukr8arectaapfl5d4rd6uc7st7tnqf0ttx39n40s

DescriptionFlexible protocol for lightning payments
SpecBOLT-12
StatusDraft
Resourceshttps://bolt12.org
Regexlno1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]+

A protocol upgrade

Pros and Cons

Pros

  • LN native
  • static
  • better proof of payment (for payer)
  • better privacy for payee
  • partly solves Stuck payments problem
  • does not need a web server, domain
  • allows specify amounts in other currencies

Cons

  • needs a LN protocol upgrade
  • unsolved spam & DoS problem

LNURL

Pros and Cons

Pros

  • static
  • sort
  • already works (no need for LN protocol upgrade)

Cons

  • needs a web server, domain name, certificate (not self-signed)
  • bad privacy for sender and receiver (if not using Tor)

Pay

Withdraw

Auth

LNURL Without Bech32

https://github.com/lnurl/luds/blob/luds/17.md

DescriptionProtocol schemes and raw (non bech32-encoded) URLs
SpecLUD-17
StatusDraft
Regex
  • lnurlc:// for LNURL-channel, i.e. channelRequest
  • lnurlw:// for LNURL-withdraw, i.e. withdrawRequest
  • lnurlp:// for LNURL-pay, i.e. payRequest
  • keyauth:// for LNURL-auth, i.e. login

LN Address

Example: username@example.com

DescriptionPaying to static internet identifiers
SpecLUD-16
StatusFinal?
Regex[a-z0-9_.-]+@[a-zA-Z0-9.-]+

Internet Identifier (like email address, but stricter rules for local part (before @)). Basically expands into https://<domain>/.well-known/lnurlp/<username>.

Other

Xpub/Xpriv