pub struct WrappedBlobKey { /* private fields */ }Expand description
The key of a blob, wrapped with a space key together with the blob’s content hash, so that the content hash stays as secret as the content. The key of a blob of a secret field is wrapped with a secrets key first, so that only a replica that holds both opens it.
In CBOR, a wrapped blob key is the array [epoch, envelope], where epoch is the
number of the space key. The envelope holds [content hash, blob key], or, for a
secret blob key, [secrets epoch, envelope], whose envelope holds them, wrapped with
the secrets key of that number. It is known by the sealed hash of its blob, and stored
apart from changes, so that purging can destroy it.
Implementations§
Trait Implementations§
Source§impl Clone for WrappedBlobKey
impl Clone for WrappedBlobKey
Source§impl Debug for WrappedBlobKey
impl Debug for WrappedBlobKey
impl Eq for WrappedBlobKey
Source§impl FromCbor for WrappedBlobKey
impl FromCbor for WrappedBlobKey
Source§impl PartialEq for WrappedBlobKey
impl PartialEq for WrappedBlobKey
impl StructuralPartialEq for WrappedBlobKey
Auto Trait Implementations§
impl Forget for WrappedBlobKey
impl Freeze for WrappedBlobKey
impl Move for WrappedBlobKey
impl RefUnwindSafe for WrappedBlobKey
impl Send for WrappedBlobKey
impl Sync for WrappedBlobKey
impl Unpin for WrappedBlobKey
impl UnsafeUnpin for WrappedBlobKey
impl UnwindSafe for WrappedBlobKey
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