Skip to content

Commit

Permalink
Doccomments
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Oct 24, 2024
1 parent 03c6b37 commit d99fc35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pallets/staking/src/pck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ use super::VerifyingKey as CompressedVerifyingKey;
use core::array::TryFromSliceError;
use sp_std::vec::Vec;

/// Provides a way of verifying a chain of certificates to give a chain of trust between the
/// provisioning certification key used to sign a TDX quote to the Intel route certificate authority
pub trait PckCertChainVerifier {
/// Verify an arbitrary chain of DER-encoded x509 certificates against Intel's root CA.
/// Typically this is two certificates, the PCK certificate and an intermediary provider
/// certificate
fn verify_pck_certificate_chain(
pck_certificate_chain: Vec<Vec<u8>>,
) -> Result<CompressedVerifyingKey, PckParseVerifyError>;
Expand Down

0 comments on commit d99fc35

Please sign in to comment.