1
0
Fork 0
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:
iskyd 2025-02-07 16:41:40 +01:00
parent 5f31faa0b6
commit 74a9b6fea5
No known key found for this signature in database
GPG key ID: 991C76DCAA073547

View file

@ -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)