pub trait WireIdentityReader {
// Required methods
fn extract_identity(
&self,
env: Option<&PkiEnvironment>,
hash_alg: HashAlgorithm,
) -> RustyAcmeResult<WireIdentity>;
fn extract_created_at(&self) -> RustyAcmeResult<u64>;
fn extract_public_key(&self) -> RustyAcmeResult<Vec<u8>>;
}Required Methods§
Sourcefn extract_identity(
&self,
env: Option<&PkiEnvironment>,
hash_alg: HashAlgorithm,
) -> RustyAcmeResult<WireIdentity>
fn extract_identity( &self, env: Option<&PkiEnvironment>, hash_alg: HashAlgorithm, ) -> RustyAcmeResult<WireIdentity>
Verifies a proof of identity, may it be a x509 certificate (or a Verifiable Presentation (later)). We do not verify anything else e.g. expiry, it is left to MLS implementation
Sourcefn extract_created_at(&self) -> RustyAcmeResult<u64>
fn extract_created_at(&self) -> RustyAcmeResult<u64>
returns the ‘Not Before’ claim which usually matches the creation timestamp
Sourcefn extract_public_key(&self) -> RustyAcmeResult<Vec<u8>>
fn extract_public_key(&self) -> RustyAcmeResult<Vec<u8>>
returns the ‘Subject Public Key Info’ claim