Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minor typos in comments #260

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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