mirror of
https://github.com/lightning/bolts.git
synced 2025-03-13 11:35:41 +01:00
fix code typo in 04 onion routing (#1225)
This commit is contained in:
parent
6bbcf5f892
commit
e96c3c59bb
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