pub struct PeerHub {
pub id: String,
pub url: String,
pub public_key: String,
pub added_at: String,
pub note: String,
}Expand description
v0.39: A registered peer hub the local frontier knows about.
Content-addressed by (id, public_key) so two registry entries
for the same peer with different keys can be detected as a
material change rather than silent overwrite.
Fields§
§id: StringStable, namespaced identifier — the equivalent of an
actor.id for hub-scale identities. Recommended form
hub:<short-name> (e.g. hub:vela-mirror-eu).
url: StringHTTPS URL where the peer publishes signed manifests. The
expected shape is <base>/manifest/<vfr_id>.json with a
detached signature at <base>/manifest/<vfr_id>.sig.
public_key: StringHex-encoded Ed25519 public key (64 hex chars) the peer signs
their manifests with. Used to verify any
frontier.merged event coming from them.
added_at: StringISO 8601 timestamp of when the peer was added to this frontier’s registry.
note: StringOptional human-readable note: “EU mirror, run by lab Z.” Doesn’t enter any content address; stored verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeerHub
impl<'de> Deserialize<'de> for PeerHub
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PeerHub
impl StructuralPartialEq for PeerHub
Auto Trait Implementations§
impl Freeze for PeerHub
impl RefUnwindSafe for PeerHub
impl Send for PeerHub
impl Sync for PeerHub
impl Unpin for PeerHub
impl UnsafeUnpin for PeerHub
impl UnwindSafe for PeerHub
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.