Skip to content

Commit

Permalink
Merge pull request #260 from vuittont60/main
Browse files Browse the repository at this point in the history
fix minor typos in comments
  • Loading branch information
berendsliedrecht authored Oct 27, 2023
2 parents ce52391 + 169bbda commit 8f16827
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/services/issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ where
))?;

// NOTE: registry is created with issuance_by_default: false and it is not used.
// The accum value in the registy is derived from issuance by default: false in `create_revocation_status_list`
// The accum value in the registry is derived from issuance by default: false in `create_revocation_status_list`
let (revoc_key_pub, revoc_key_priv, _, mut rev_tails_generator) =
Issuer::new_revocation_registry_def(&credential_pub_key, max_cred_num, false)?;

Expand Down
4 changes: 2 additions & 2 deletions src/services/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ pub fn verify_presentation(
let (predicates_for_credential, pred_nonrevoked_interval) =
get_predicates_for_credential(sub_proof_index, &presentation.requested_proof, pres_req);

// Collaspe to the most stringent local interval for the attributes / predicates,
// Collapse to the most stringent local interval for the attributes / predicates,
// we can do this because there is only 1 revocation status list for this credential
// if it satsifies the most stringent interval, it will satisfy all intervals
// if it satisfies the most stringent interval, it will satisfy all intervals
let mut cred_nonrevoked_interval: Option<NonRevokedInterval> =
match (attrs_nonrevoked_interval, pred_nonrevoked_interval) {
(Some(attr), None) => Some(attr),
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use anoncreds::{

use super::storage::ProverWallet;

// Goverment credential related fixtures
// Government credential related fixtures
pub const GVT_SCHEMA_NAME: &str = "Government Schema";
pub const GVT_SCHEMA_ID: &str = "schema:government";
pub const GVT_SCHEMA_VERSION: &str = "1.0";
Expand Down

0 comments on commit 8f16827

Please sign in to comment.