pub struct CopyBox {
pub routing: KeyCopyPrefix,
pub sealed: Vec<u8>,
}Expand description
An original anonymous box, retaining its random bytes across retries.
Fields§
§routing: KeyCopyPrefixVisible audience, key and recipient routing.
sealed: Vec<u8>Crypto’s ephemeral key, nonce, ciphertext and tag, without wire lengths.
Implementations§
Source§impl CopyBox
impl CopyBox
Sourcepub fn open_store_key(
&self,
member: &MemberIdentity,
path: &str,
prefix: &[u8],
) -> Result<StoreKey, CryptoError>
pub fn open_store_key( &self, member: &MemberIdentity, path: &str, prefix: &[u8], ) -> Result<StoreKey, CryptoError>
Open tentatively using the complete slot prefix through sealing as
context. The caller verifies the slot signature and key introduction.
Sourcepub fn open_circle_key(
&self,
member: &MemberIdentity,
path: &str,
prefix: &[u8],
) -> Result<CircleKey, CryptoError>
pub fn open_circle_key( &self, member: &MemberIdentity, path: &str, prefix: &[u8], ) -> Result<CircleKey, CryptoError>
Open a circle box with its exact historical recipient credential.
Trait Implementations§
impl Eq for CopyBox
impl StructuralPartialEq for CopyBox
Auto Trait Implementations§
impl Freeze for CopyBox
impl RefUnwindSafe for CopyBox
impl Send for CopyBox
impl Sync for CopyBox
impl Unpin for CopyBox
impl UnsafeUnpin for CopyBox
impl UnwindSafe for CopyBox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more