Skip to content

Commit 2551b60

Browse files
TheBlueMattrustyrussell
authored andcommitted
BOLT 3: fix secret gen requirements layout
It misrenders on GitHub. Matt had a patch which changed the actual form of the requiremnt, this uses ``` instead. Based-on-Patch-By: Matt Corallo @TheBlueMatt Signed-off-by: Rusty Russell <[email protected]>
1 parent 205d521 commit 2551b60

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

03-transactions.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -491,14 +491,15 @@ The first secret used:
491491

492492
The I'th secret P:
493493
- MUST match the output of this algorithm:
494-
495-
generate_from_seed(seed, I):
496-
P = seed
497-
for B in 47 down to 0:
498-
if B set in I:
499-
flip(B) in P
500-
P = SHA256(P)
501-
return P
494+
```
495+
generate_from_seed(seed, I):
496+
P = seed
497+
for B in 47 down to 0:
498+
if B set in I:
499+
flip(B) in P
500+
P = SHA256(P)
501+
return P
502+
```
502503

503504
Where "flip(B)" alternates the B'th least significant bit in the value P.
504505

0 commit comments

Comments
 (0)