pub trait KeypackageExt {
// Required methods
fn make_ref(&self) -> Result<KeypackageRef, MlsError>;
fn ciphersuite(&self) -> Ciphersuite;
fn credential_type(&self) -> CredentialType;
fn is_valid(&self) -> bool;
}Expand description
Extensions on the KeyPackage type for nicer usage patterns.
Required Methods§
Sourcefn make_ref(&self) -> Result<KeypackageRef, MlsError>
fn make_ref(&self) -> Result<KeypackageRef, MlsError>
Make a “fat” KeypackageRef from this Keypackage.
This is a fairly inexpensive operation.
Sourcefn ciphersuite(&self) -> Ciphersuite
fn ciphersuite(&self) -> Ciphersuite
Returns the ciphersuite associated this this key package.
Sourcefn credential_type(&self) -> CredentialType
fn credential_type(&self) -> CredentialType
Returns the credential type associated with this key package.