Skip to content

Commit

Permalink
bolt12: add inv invreq_bip_353_name field to invoice.
Browse files Browse the repository at this point in the history
All things are supposed to be mirrored from invoice_request into invoice.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and endothermicdev committed Feb 12, 2025
1 parent 7b00e61 commit 3d8238f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions wire/bolt12_wire.csv
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ tlvtype,invoice,invreq_payer_note,89
tlvdata,invoice,invreq_payer_note,note,utf8,...
tlvtype,invoice,invreq_paths,90
tlvdata,invoice,invreq_paths,paths,blinded_path,...
tlvtype,invoice,invreq_bip_353_name,91
tlvdata,invoice,invreq_bip_353_name,name_len,u8,
tlvdata,invoice,invreq_bip_353_name,name,byte,name_len
tlvdata,invoice,invreq_bip_353_name,domain_len,u8,
tlvdata,invoice,invreq_bip_353_name,domain,byte,domain_len
tlvtype,invoice,invreq_recurrence_counter,2212121212
tlvdata,invoice,invreq_recurrence_counter,counter,tu32,
tlvtype,invoice,invreq_recurrence_start,2212121214
Expand Down
14 changes: 14 additions & 0 deletions wire/extracted_bolt12_00_invoice-add-bip353.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- wire/bolt12_wire.csv.raw 2025-01-23 16:17:55.387267448 +1030
+++ wire/bolt12_wire.csv 2025-01-23 16:18:15.515380646 +1030
@@ -103,6 +103,11 @@
tlvdata,invoice,invreq_payer_note,note,utf8,...
tlvtype,invoice,invreq_paths,90
tlvdata,invoice,invreq_paths,paths,blinded_path,...
+tlvtype,invoice,invreq_bip_353_name,91
+tlvdata,invoice,invreq_bip_353_name,name_len,u8,
+tlvdata,invoice,invreq_bip_353_name,name,byte,name_len
+tlvdata,invoice,invreq_bip_353_name,domain_len,u8,
+tlvdata,invoice,invreq_bip_353_name,domain,byte,domain_len
tlvtype,invoice,invoice_paths,160
tlvdata,invoice,invoice_paths,paths,blinded_path,...
tlvtype,invoice,invoice_blindedpay,162
6 changes: 3 additions & 3 deletions wire/extracted_bolt12_01_recurrence.patch
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
tlvdata,invoice,invreq_chain,chain,chain_hash,
tlvtype,invoice,invreq_amount,82
@@ -101,6 +141,10 @@
tlvdata,invoice,invreq_payer_note,note,utf8,...
tlvtype,invoice,invreq_paths,90
tlvdata,invoice,invreq_paths,paths,blinded_path,...
tlvdata,invoice,invreq_bip_353_name,name,byte,name_len
tlvdata,invoice,invreq_bip_353_name,domain_len,u8,
tlvdata,invoice,invreq_bip_353_name,domain,byte,domain_len
+tlvtype,invoice,invreq_recurrence_counter,2212121212
+tlvdata,invoice,invreq_recurrence_counter,counter,tu32,
+tlvtype,invoice,invreq_recurrence_start,2212121214
Expand Down

0 comments on commit 3d8238f

Please sign in to comment.