@@ -6,7 +6,7 @@ use core::{
66
77use chrono:: { DateTime , Utc } ;
88use ts_capabilityversion:: CapabilityVersion ;
9- use ts_keys:: { DiscoPublicKey , MachinePublicKey , NodePublicKey } ;
9+ use ts_keys:: { DiscoKey , MachineKey , NodeKey , Public } ;
1010
1111const LAST_SEEN_FORMAT : & str = "%F %T %Z" ;
1212
@@ -170,15 +170,15 @@ pub struct Node {
170170 /// The address of the node in the tailnet.
171171 pub tailnet_address : TailnetAddress ,
172172
173- /// The node's [`NodePublicKey`] .
174- pub node_key : NodePublicKey ,
173+ /// The node's node public key .
174+ pub node_key : Public < NodeKey > ,
175175 /// The node key's expiration.
176176 pub node_key_expiry : Option < DateTime < Utc > > ,
177177
178- /// The node's [`MachinePublicKey`] , if known.
179- pub machine_key : Option < MachinePublicKey > ,
180- /// The node's [`DiscoPublicKey`] , if known.
181- pub disco_key : Option < DiscoPublicKey > ,
178+ /// The node's machine public key , if known.
179+ pub machine_key : Option < Public < MachineKey > > ,
180+ /// The node's disco public key , if known.
181+ pub disco_key : Option < Public < DiscoKey > > ,
182182 /// The signature of the node's public key with the Tailnet Lock signing key, if Tailnet Lock
183183 /// is enabled and the signature is known.
184184 pub tailnet_lock_key_signature : Option < Vec < u8 > > ,
@@ -400,13 +400,13 @@ pub struct NodeUpdate {
400400 /// The node's capabilities (node caps, not peer caps). If `None`, has not changed.
401401 pub cap_map : Option < BTreeMap < String , Vec < String > > > ,
402402
403- /// The node's [`NodePublicKey`] . If `None`, has not changed.
404- pub node_key : Option < NodePublicKey > ,
403+ /// The node's node public key . If `None`, has not changed.
404+ pub node_key : Option < Public < NodeKey > > ,
405405 /// The node key's expiration. If `None`, has not changed.
406406 pub node_key_expiry : Option < DateTime < Utc > > ,
407407
408- /// The node's [`DiscoPublicKey`] . If `None`, has not changed.
409- pub disco_key : Option < DiscoPublicKey > ,
408+ /// The node's disco public key . If `None`, has not changed.
409+ pub disco_key : Option < Public < DiscoKey > > ,
410410
411411 /// The node's key signature for Tailnet Lock. If `None`, has not changed.
412412 pub tailnet_lock_key_signature : Option < Vec < u8 > > ,
0 commit comments