File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1674,20 +1674,20 @@ pub use self::fuzzy_internal_msgs::*;
1674
1674
#[ cfg( not( fuzzing) ) ]
1675
1675
pub ( crate ) use self :: fuzzy_internal_msgs:: * ;
1676
1676
1677
- /// Full Bolt04 OnionPacket including next hop data
1677
+ /// BOLT 4 onion packet including hop data for the next peer.
1678
1678
#[ derive( Clone ) ]
1679
1679
pub struct OnionPacket {
1680
- /// Bolt 04 version
1680
+ /// BOLT 4 version number.
1681
1681
pub version : u8 ,
1682
1682
/// In order to ensure we always return an error on onion decode in compliance with [BOLT
1683
1683
/// #4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md), we have to
1684
1684
/// deserialize `OnionPacket`s contained in [`UpdateAddHTLC`] messages even if the ephemeral
1685
1685
/// public key (here) is bogus, so we hold a [`Result`] instead of a [`PublicKey`] as we'd
1686
1686
/// like.
1687
1687
pub public_key : Result < PublicKey , secp256k1:: Error > ,
1688
- /// Encrypted data for the next hop
1688
+ /// 1300 bytes encrypted payload for the next hop.
1689
1689
pub hop_data : [ u8 ; 20 * 65 ] ,
1690
- /// HMAC to validate hop_date
1690
+ /// HMAC to verify the integrity of hop_data.
1691
1691
pub hmac : [ u8 ; 32 ] ,
1692
1692
}
1693
1693
You can’t perform that action at this time.
0 commit comments