pub enum OverlayId {
Outer(Blake3Digest32),
Inner(Blake3Digest32),
Global,
}
Expand description
Overlay ID
- for outer overlays that need to be discovered by public key: BLAKE3 hash over the public key of the store repo
- for inner overlays:
BLAKE3 keyed hash over the public key of the store repo
- key: BLAKE3 derive_key (“NextGraph Overlay ReadCapSecret BLAKE3 key”, store repo’s overlay’s branch ReadCapSecret) except for Dialog Overlays where the Hash is computed from 2 secrets.
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OverlayId
impl<'de> Deserialize<'de> for OverlayId
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
impl Copy for OverlayId
impl Eq for OverlayId
impl StructuralPartialEq for OverlayId
Auto Trait Implementations§
impl Freeze for OverlayId
impl RefUnwindSafe for OverlayId
impl Send for OverlayId
impl Sync for OverlayId
impl Unpin for OverlayId
impl UnwindSafe for OverlayId
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