Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Oct 22, 2024
1 parent c851a92 commit 4ca248a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internet_identity/src/vc_mvp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ pub async fn prepare_id_alias(
};

// rp_signing_input is sent to the relying party.
// Therefore, it needs to have the rp origin to confirm from where the principal is derived from.
// The relying party needs to have the derivation origin to confirm where the principal is derived from.
let rp_signing_input = vc_signing_input(&id_alias_credential_jwt(&rp_tuple), &canister_sig_pk)
.expect("failed getting signing_input");
// issuer_signing_input is sent to the relying party.
// The issuer doesn't care so much from which origin is derived, but we keep it for consistency.
// The issuer needs to have the derivation origin to confirm where the principal is derived from.
let issuer_signing_input =
vc_signing_input(&id_alias_credential_jwt(&issuer_tuple), &canister_sig_pk)
.expect("failed getting signing_input");
Expand Down

0 comments on commit 4ca248a

Please sign in to comment.