mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
multi: fix make fmt
This commit is contained in:
@@ -383,7 +383,7 @@ func (b *BtcWalletKeyRing) DerivePrivKey(keyDesc KeyDescriptor) (
|
||||
// k is our private key, and P is the public key, we perform the following
|
||||
// operation:
|
||||
//
|
||||
// sx := k*P s := sha256(sx.SerializeCompressed())
|
||||
// sx := k*P s := sha256(sx.SerializeCompressed())
|
||||
//
|
||||
// NOTE: This is part of the keychain.ECDHRing interface.
|
||||
func (b *BtcWalletKeyRing) ECDH(keyDesc KeyDescriptor,
|
||||
|
@@ -63,7 +63,7 @@ var (
|
||||
// The key derivation in this file follows the following hierarchy based on
|
||||
// BIP43:
|
||||
//
|
||||
// * m/1017'/coinType'/keyFamily'/0/index
|
||||
// - m/1017'/coinType'/keyFamily'/0/index
|
||||
type KeyFamily uint32
|
||||
|
||||
const (
|
||||
@@ -143,7 +143,7 @@ var VersionZeroKeyFamilies = []KeyFamily{
|
||||
// Version 0 of our key derivation schema uses the following BIP43-like
|
||||
// derivation:
|
||||
//
|
||||
// * m/1017'/coinType'/keyFamily'/0/index
|
||||
// - m/1017'/coinType'/keyFamily'/0/index
|
||||
//
|
||||
// Our purpose is 1017 (chosen arbitrary for now), and the coin type will vary
|
||||
// based on which coin/chain the channels are being created on. The key family
|
||||
|
@@ -37,8 +37,8 @@ func (p *PubKeyECDH) PubKey() *btcec.PublicKey {
|
||||
// k is our private key, and P is the public key, we perform the following
|
||||
// operation:
|
||||
//
|
||||
// sx := k*P
|
||||
// s := sha256(sx.SerializeCompressed())
|
||||
// sx := k*P
|
||||
// s := sha256(sx.SerializeCompressed())
|
||||
//
|
||||
// NOTE: This is part of the SingleKeyECDH interface.
|
||||
func (p *PubKeyECDH) ECDH(pubKey *btcec.PublicKey) ([32]byte, error) {
|
||||
@@ -67,8 +67,8 @@ func (p *PrivKeyECDH) PubKey() *btcec.PublicKey {
|
||||
// k is our private key, and P is the public key, we perform the following
|
||||
// operation:
|
||||
//
|
||||
// sx := k*P
|
||||
// s := sha256(sx.SerializeCompressed())
|
||||
// sx := k*P
|
||||
// s := sha256(sx.SerializeCompressed())
|
||||
//
|
||||
// NOTE: This is part of the SingleKeyECDH interface.
|
||||
func (p *PrivKeyECDH) ECDH(pub *btcec.PublicKey) ([32]byte, error) {
|
||||
|
Reference in New Issue
Block a user