pub struct Realm {
pub name: String,
pub registry: String,
pub trust_root: Vec<u8>,
pub signed_index: bool,
}Expand description
A resolved realm: everything needed to fetch and verify its layers.
Fields§
§name: String§registry: String§trust_root: Vec<u8>Raw ed25519 root public key bytes.
signed_index: boolThe realm asserts that it publishes a signed line index (REQ-INDEXAUTH-001 clause 5). Where true, a missing index is an ERROR rather than a silent fall back to the registry’s unauthenticated listing — otherwise an attacker need only delete the index to disable the check. Defaults to false so every existing realm keeps working: failing closed by default would break all of them at once.
Implementations§
Source§impl Realm
impl Realm
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Short fingerprint of the trust root — the store namespace. Sixteen hex chars of sha256(pubkey): collision-safe for a namespace while staying readable in paths.
Sourcepub fn effective_root(&self, varve_root: &Path) -> PathBuf
pub fn effective_root(&self, varve_root: &Path) -> PathBuf
The per-realm effective root under which core/state/status live.
Trait Implementations§
impl Eq for Realm
impl StructuralPartialEq for Realm
Auto Trait Implementations§
impl Freeze for Realm
impl RefUnwindSafe for Realm
impl Send for Realm
impl Sync for Realm
impl Unpin for Realm
impl UnsafeUnpin for Realm
impl UnwindSafe for Realm
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more