mirror of
https://github.com/lightning/bolts.git
synced 2025-01-18 21:32:31 +01:00
BOLT 3: Fix incorrect secret derivation.
There was talk of using a simple increment, but it was removed after Tadge educated me. Somehow this didn't get updated. Reported-by: Tadge Dryja <tdryja@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
e88dd27d12
commit
10f49ecb84
@ -418,7 +418,7 @@ uses the local node's `delayed-payment-basepoint`, and the
|
||||
The correspoding private keys can be derived similarly if the basepoint
|
||||
secrets are known (ie. `localkey` and `local-delayedkey` only):
|
||||
|
||||
secretkey = basepoint-secret + SHA256(basepoint || commit-number)
|
||||
secretkey = basepoint-secret + SHA256(per-commitment-point || basepoint)
|
||||
|
||||
## `revocationkey` Derivation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user