Skip to content

Commit

Permalink
Bolt 11: add example SHA256 hash of description (#994)
Browse files Browse the repository at this point in the history
Clarify test vector.
  • Loading branch information
hugomd authored Sep 18, 2024
1 parent 0463bdb commit e0b1200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 11-payment-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ Breakdown:
* `p`: payment hash...
* `h`: tagged field: hash of description
* `p5`: `data_length` (`p` = 1, `5` = 20; 1 * 32 + 20 == 52)
* `8yjmdan79s6qqdhdzgynm4zwqd5d7xmw5fk98klysy043l2ahrqs`: SHA256 of 'One piece of chocolate cake, one icecream cone, one pickle, one slice of swiss cheese, one slice of salami, one lollypop, one piece of cherry pie, one sausage, one cupcake, and one slice of watermelon'
* `8yjmdan79s6qqdhdzgynm4zwqd5d7xmw5fk98klysy043l2ahrqs`: SHA256 of 'One piece of chocolate cake, one icecream cone, one pickle, one slice of swiss cheese, one slice of salami, one lollypop, one piece of cherry pie, one sausage, one cupcake, and one slice of watermelon' (SHA256 hex: `3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1`)
* `9`: features
* `qr`: `data_length` (`q` = 0, `r` = 3; 0 * 32 + 3 == 3)
* `sgq`: b100000100000000
Expand Down

0 comments on commit e0b1200

Please sign in to comment.