lnwallet: correct comment in revoke derivation explanation
This commit is contained in:
parent
1f7d9b6425
commit
f03122e697
@ -49,7 +49,6 @@ func LnAddrFromString(encodedAddr string) (*LNAdr, error) {
|
|||||||
|
|
||||||
// Attempt to resolve the IP address, this handles parsing IPv6 zones,
|
// Attempt to resolve the IP address, this handles parsing IPv6 zones,
|
||||||
// and such.
|
// and such.
|
||||||
fmt.Println("host: ", idHost[1])
|
|
||||||
ipAddr, err := net.ResolveTCPAddr("tcp", idHost[1])
|
ipAddr, err := net.ResolveTCPAddr("tcp", idHost[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -682,7 +682,7 @@ func commitSpendNoDelay(commitScript []byte, outputAmt btcutil.Amount,
|
|||||||
// The derivation is performed as follows:
|
// The derivation is performed as follows:
|
||||||
//
|
//
|
||||||
// revokeKey := commitKey + revokePoint
|
// revokeKey := commitKey + revokePoint
|
||||||
// := G*k + G+h
|
// := G*k + G*h
|
||||||
// := G * (k+h)
|
// := G * (k+h)
|
||||||
//
|
//
|
||||||
// Therefore, once we divulge the revocation pre-image, the remote peer is able to
|
// Therefore, once we divulge the revocation pre-image, the remote peer is able to
|
||||||
|
Loading…
Reference in New Issue
Block a user