lnwire: all hashes within the protocol are now 32-bytes

We now enforce that the site of all revocation pre-images+hashes (used
for HTLC’s) are now 32-bytes.

Additionally, all payment pre-images are now required to be 32-bytes
not he wire. There also exists a Script level enforcement of the
payment pre-image size at a lower level.

This commit serves to unify the sizes of all hashes/pre-images across
the codebase.
This commit is contained in:
Olaoluwa Osuntokun committed 2016-06-30 11:53:21 -07:00
1 parent fd02c1c1aa
commit bba9b665ef
10 files changed
+29 -23

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ type FundingRequest struct {
// 2: channel responder
FeePayer uint8
RevocationHash [20]byte
RevocationHash [32]byte
Pubkey *btcec.PublicKey
DeliveryPkScript PkScript // *MUST* be either P2PKH or P2SH
ChangePkScript PkScript // *MUST* be either P2PKH or P2SH