Skip to content

Commit

Permalink
Typo in struct name and improve test readablilty
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Oct 24, 2024
1 parent 4fc7cb2 commit a6c5cea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pallets/staking/src/pck/production.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const INTEL_ROOT_CA_PK_DER: [u8; 91] = [

/// A PCK certificate chain verifier for use in production where entropy-tss is running on TDX
/// hardware and we have a PCK certificate chain
pub struct ProductionPckCertChainVerifyer {}
pub struct ProductionPckCertChainVerifier {}

impl PckCertChainVerifier for ProductionPckCertChainVerifyer {
impl PckCertChainVerifier for ProductionPckCertChainVerifier {
fn verify_pck_certificate_chain(
pck_certificate_chain: Vec<Vec<u8>>,
) -> Result<CompressedVerifyingKey, PckParseVerifyError> {
Expand Down Expand Up @@ -109,8 +109,7 @@ mod tests {
fn test_verify_pck_cert_chain() {
let pck = include_bytes!("../../test_pck_certs/pck_cert.der").to_vec();
let platform = include_bytes!("../../test_pck_certs/platform_pcs_cert.der").to_vec();
let _key =
ProductionPckCertChainVerifyer::verify_pck_certificate_chain(vec![pck, platform])
.unwrap();
assert!(ProductionPckCertChainVerifier::verify_pck_certificate_chain(vec![pck, platform])
.is_ok());
}
}

0 comments on commit a6c5cea

Please sign in to comment.