lnwire: update CommitRevocation for revoke key scheme
With this commit a revocation message now carries 3 items: 1. A pre-image revoking the lowest unrevoked commitment transaction in the commitment chain. 2. A new key which extends the current revocation window by 1. This key is to be used for new commitment transactions. 3. A new hash which also extends the current revocation window by 1. This hash is to be used for new HTLC revocation hashes.
This commit is contained in:
3 files changed
+34
-17
No files matched your search
@@ -128,7 +128,7 @@ func (c *CloseRequest) String() string {
|
||||
}
|
||||
|
||||
return fmt.Sprintf("\n--- Begin CloseRequest ---\n") +
|
||||
fmt.Sprintf("ChannelPoint:\t\t%d\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("ChannelPoint:\t\t%v\n", c.ChannelPoint) +
|
||||
fmt.Sprintf("CloseSig\t\t%x\n", serializedSig) +
|
||||
fmt.Sprintf("Fee:\t\t\t%d\n", c.Fee) +
|
||||
fmt.Sprintf("--- End CloseRequest ---\n")
|
||||
|
||||
Reference in new issue
Block a user