Skip to content

Commit e0b1200

Browse files
authored
Bolt 11: add example SHA256 hash of description (#994)
Clarify test vector.
1 parent 0463bdb commit e0b1200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

11-payment-encoding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ Breakdown:
455455
* `p`: payment hash...
456456
* `h`: tagged field: hash of description
457457
* `p5`: `data_length` (`p` = 1, `5` = 20; 1 * 32 + 20 == 52)
458-
* `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'
458+
* `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`)
459459
* `9`: features
460460
* `qr`: `data_length` (`q` = 0, `r` = 3; 0 * 32 + 3 == 3)
461461
* `sgq`: b100000100000000

0 commit comments

Comments
 (0)