mirror of
https://github.com/lightning/bolts.git
synced 2025-03-13 11:35:41 +01:00
fix code typo in 04 onion routing
This commit is contained in:
parent
5f31faa0b6
commit
74a9b6fea5
1 changed files with 1 additions and 1 deletions
|
@ -854,7 +854,7 @@ func NewOnionPacket(paymentPath []*btcec.PublicKey, sessionKey *btcec.PrivateKey
|
|||
|
||||
// Our starting packet needs to be filled out with random bytes, we
|
||||
// generate some deterministically using the session private key.
|
||||
paddingKey := generateKey("pad", sessionKey.Serialize()
|
||||
paddingKey := generateKey("pad", sessionKey.Serialize())
|
||||
paddingBytes := generateCipherStream(paddingKey, routingInfoSize)
|
||||
copy(mixHeader[:], paddingBytes)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue