1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-02-21 22:11:54 +01:00

Merge pull request #859 from LLFourn/patch-1

per_commitment_secret must be a valid secret key
This commit is contained in:
Matt Corallo 2021-04-12 20:26:12 +00:00 committed by GitHub
commit a9db80e49d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1080,7 +1080,7 @@ A sending node:
transaction.
A receiving node:
- if `per_commitment_secret` does not generate the previous `per_commitment_point`:
- if `per_commitment_secret` is not a valid secret key or does not generate the previous `per_commitment_point`:
- MUST fail the channel.
- if the `per_commitment_secret` was not generated by the protocol in [BOLT #3](03-transactions.md#per-commitment-secret-requirements):
- MAY fail the channel.