Skip to content

Update README and add bLIP-0001 - #1

Merged
ryanthegentry merged 1 commit into
masterfrom
updateReadme
Dec 7, 2021
Merged

ryanthegentry merged 1 commit into
masterfrom
updateReadme

Conversation

@ryanthegentry

Copy link
Copy Markdown
Collaborator

This PR initializes the new bLIPs repo with a README modeled after the BIPs README, and adds bLIP-0001, which was previously being discussed in PR #884 in the lightning-rfc repo.

Only a few adjustments have been made to bLIP-0001 while transferring from the previous repo:

  1. added a mandated Universality section requesting proposals "discuss why the given feature is not intended to be
    universal and why it's still a good idea as a non-universal protocol" per @TheBlueMatt's feedback.
  2. added that Feature Bits >100 yet <1000 were reserved for experimentation per @rustyrussell's comments in the 9/27 lightning-dev IRC meeting, and the same for TLVs > 65536 per Bolt #1.
  3. fixed a few links/comments that would no longer be correct with a new bLIPs repo (hope I didn't miss any!).

Once these two docs are merged, the next step IMO will be to close the old PR and open a new one for a BOLT #13 (?) that acts as a central registry for bLIP'd Feature Bits, Message Types, and TLVs (and maybe more down the road...) per @t-bast's feedback (replacing PRs #605 and #716 from lightning-rfc). Maybe specifying the process of approving a bLIP using one of these resources, and then adding the resource assignment to the new BOLT, could be a good bLIP-0002?

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carrying over my approval here from the other repo

LGTM ☄️

@dangershony

Copy link
Copy Markdown

Hi, I know I don't comment here much (I observe though) I am curious as to why is the b lower case? intuitively BLIP seems more inline with the BIP, BOLT systems. (apologies if this was discussed already).

@t-bast

t-bast commented Dec 7, 2021

Copy link
Copy Markdown
Contributor

Agreed, I find bLIP kinda weird, not sure why it uses this casing.
And FWIW I voted for "sparks" 😎

@ryanthegentry
ryanthegentry merged commit ba5fee2 into master Dec 7, 2021
@ryanthegentry
ryanthegentry deleted the updateReadme branch December 7, 2021 15:04
ffranr pushed a commit to ffranr/blips that referenced this pull request Apr 4, 2024
blip-29: use Unix timestamp for RFQ accepted quote expiry
vincenzopalazzo referenced this pull request in vincenzopalazzo/blips May 29, 2026
Adds a discussion-only sketch for a payee-side proof of payment,
mirroring the machinery proposed in lightning/bolts#1295 (payer
proofs by rustyrussell) but signed by invoice_node_id.

Design summary:
- Selective disclosure reuses the BOLT 12 merkle commitment used
  by #1295 (proof_omitted_tlvs / proof_missing_hashes /
  proof_leaf_hashes), so a single library can verify either side.
- Verifier challenge (proof_verifier_nonce + optional
  proof_statement) is required, signed by the payee under
  tagged_hash('lightning/payee_proof/v1', merkle_root ||
  payment_hash || verifier_nonce || sha256(statement)).
- Signing key is invoice_node_id (BOLT 12 TLV 176): either the
  merchant's offer_issuer_id, or the blinded final_node_id when
  the invoice was served over offer_paths. The blinded-path case
  gives the proof privacy-for-free (no de-anonymisation of the
  merchant's persistent node id).
- Wire encoding: bech32 lnpp1... mirroring #1295's lnp1...

This solves Open Question #1 ('Proof of payment') of bLIP-0056
modulo one remaining issue: in the blinded-path case the payee
must keep the blinded private key alive (or deterministically
re-derive it) to re-sign proofs on demand, which is non-trivial
for stateless-inbound payees like LDK. That question is left
open in the sketch.

Not a numbered bLIP yet — the intent is to circulate the design,
decide whether it belongs as a BOLT 12 sibling section to #1295
or as bLIP-0057, then promote.
@vincenzopalazzo

Copy link
Copy Markdown

Hey Jeff, pushed a fixup commit on blip-0056-address-review with everything addressed. The big ones:

  • Dropped order_id from the protocol entirely (per our Vienna discussion + the Discord thread). Merchant relays the decrypted payment_token, PoS matches it against what it sealed. order_id is now just PoS-internal data.
  • Restructured the whole thing top-down: overview + glossary first, then details.
  • Killed all the LDK-specific language.
  • Trimmed ~190 lines — it was way too verbose, lots of stuff repeated in 3 places.

Still need to reserve the TLV/feature bit numbers in blip-0002, will do that next. A couple of inline comments below where I would like your input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants