File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,12 @@ const MAX_EXCESS_BYTES_FOR_RELAY: usize = 1024;
72
72
/// This value ensures a reply fits within the 65k payload limit and is consistent with other implementations.
73
73
const MAX_SCIDS_PER_REPLY : usize = 8000 ;
74
74
75
- /// Represents the compressed public key of a node
75
+ /// A compressed pubkey which a node uses to sign announcements and decode HTLCs routed through it.
76
+ ///
77
+ /// This type stores a simple byte array which is not checked for validity (i.e. that it describes
78
+ /// a point which lies on the secp256k1 curve), unlike [`PublicKey`], as validity checking would
79
+ /// otherwise represent a large portion of [`NetworkGraph`] deserialization time (and RGS
80
+ /// application).
76
81
#[ derive( Clone , Copy , PartialEq , Eq ) ]
77
82
pub struct NodeId ( [ u8 ; PUBLIC_KEY_SIZE ] ) ;
78
83
You can’t perform that action at this time.
0 commit comments