pub struct KeyPackageInfo {
pub key_package_ref: KeyPackageRef,
pub key_package_index: u32,
}Available on crate feature
extensions-draft and crate feature virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Wire struct a virtual client hands to a sibling so the sibling can fetch and process the matching KeyPackage (mls-virtual-clients draft):
struct {
opaque key_package_ref<V>;
uint32 key_package_index;
} KeyPackageInfokey_package_ref is the KeyPackageRef (a HashReference) of the
KeyPackage built by KeyPackageBuilder::build_vc_batch. key_package_index
is the KeyPackage’s position within the key_package operation batch: one
operation secret covers the whole batch and each KeyPackage’s seed is
derived from it under this index.
Fields§
§key_package_ref: KeyPackageRefHash reference of the virtual client’s KeyPackage.
key_package_index: u32Position of this KeyPackage within the operation batch.
Trait Implementations§
Source§impl Debug for KeyPackageInfo
impl Debug for KeyPackageInfo
Source§impl DeserializeBytes for KeyPackageInfo
impl DeserializeBytes for KeyPackageInfo
Source§impl Serialize for KeyPackageInfo
impl Serialize for KeyPackageInfo
Source§impl Serialize for &KeyPackageInfo
impl Serialize for &KeyPackageInfo
Source§impl Size for KeyPackageInfo
impl Size for KeyPackageInfo
fn tls_serialized_len(&self) -> usize
Source§impl Size for &KeyPackageInfo
impl Size for &KeyPackageInfo
fn tls_serialized_len(&self) -> usize
Auto Trait Implementations§
impl Freeze for KeyPackageInfo
impl RefUnwindSafe for KeyPackageInfo
impl Send for KeyPackageInfo
impl Sync for KeyPackageInfo
impl Unpin for KeyPackageInfo
impl UnsafeUnpin for KeyPackageInfo
impl UnwindSafe for KeyPackageInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more