X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fchannel_id.rs;h=cdbcd302929c70b1a2a5c59dd51da2d22df39e2e;hb=e0fe325402862978c66603e598cdf7f6fa628606;hp=332fc355ed38ac8eb5abe1c974e92c8ebe606ead;hpb=7a992ba40f6192bce138cf3eafdf41c3d050b9f7;p=rust-lightning diff --git a/lightning/src/ln/channel_id.rs b/lightning/src/ln/channel_id.rs index 332fc355..cdbcd302 100644 --- a/lightning/src/ln/channel_id.rs +++ b/lightning/src/ln/channel_id.rs @@ -21,7 +21,9 @@ use core::fmt; use core::ops::Deref; /// A unique 32-byte identifier for a channel. -/// Depending on how the ID is generated, several varieties are distinguished (but all are stored as 32 bytes): _v1_ and _temporary_. +/// Depending on how the ID is generated, several varieties are distinguished +/// (but all are stored as 32 bytes): +/// _v1_ and _temporary_. /// A _v1_ channel ID is generated based on funding tx outpoint (txid & index). /// A _temporary_ ID is generated randomly. /// (Later revocation-point-based _v2_ is a possibility.) @@ -29,7 +31,7 @@ use core::ops::Deref; /// /// This is not exported to bindings users as we just use [u8; 32] directly. #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] -pub struct ChannelId (pub [u8; 32]); +pub struct ChannelId(pub [u8; 32]); impl ChannelId { /// Create _v1_ channel ID based on a funding TX ID and output index