LNP-BP / LNPBPs

LNP/BP standards for bitcoin layer 2 & 3 protocols
https://standards.lnp-bp.org
202 stars 39 forks source link

LNPBP-1 adjustment according to bitcoin consensus rules #66

Closed dr-orlovsky closed 3 years ago

dr-orlovsky commented 3 years ago

We must add condition that LNPBP-1 procedure must fail in case the tweaking factor greater than Sepck256k1 base point G order n.

This condition was absent before, because tweaking overflow does not affect commitment security due to DLP. However, while secp256k1 library tweaking function (used by Bitcoin Core) fails and we can't change its behavior, we have no other option than to fail as well.