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;
7272/// This value ensures a reply fits within the 65k payload limit and is consistent with other implementations.
7373const MAX_SCIDS_PER_REPLY : usize = 8000 ;
7474
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).
7681#[ derive( Clone , Copy , PartialEq , Eq ) ]
7782pub struct NodeId ( [ u8 ; PUBLIC_KEY_SIZE ] ) ;
7883
You can’t perform that action at this time.
0 commit comments