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:
10 files changed
+29
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user