pub struct Registry {
pub dimensions: ValueRegistry,
pub algorithms: ValueRegistry,
pub ceremony_types: ValueRegistry,
pub format_profiles: ValueRegistry,
pub scope_dimensions: ValueRegistry,
}Expand description
The five scheme-maintained registries in one bundle.
Fields§
§dimensions: ValueRegistryTrust dimension tag registry.
algorithms: ValueRegistryAlgorithm identifier registry (classical, post-quantum, composite) with status.
ceremony_types: ValueRegistryCeremony type registry.
format_profiles: ValueRegistryFormat profile registry.
scope_dimensions: ValueRegistryScope dimension registry.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn with_initial_values() -> Self
pub fn with_initial_values() -> Self
The five registries populated with the framework’s initial values (Annex C: initial content is the scheme’s decision at establishment; these are Confium’s defaults).
Sourcepub fn from_published_bytes(bytes: &[u8]) -> SignatifResult<Self>
pub fn from_published_bytes(bytes: &[u8]) -> SignatifResult<Self>
Load a registry from its published bytes (the Annex C
publication convention: schemes publish registry.json at a
stable URL; every verification surface loads the same bytes).
Round-trips with Registry::publication_bytes.
§Errors
Returns an encoding error on malformed JSON.
Sourcepub fn publication_bytes(&self) -> SignatifResult<Vec<u8>>
pub fn publication_bytes(&self) -> SignatifResult<Vec<u8>>
Sourcepub fn register_dimension(&mut self, tag: &str, description: &str)
pub fn register_dimension(&mut self, tag: &str, description: &str)
Declare a scheme-registered extension dimension.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
impl UnwindSafe for Registry
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
Mutably borrows from an owned value. Read more