Skip to content

Commit

Permalink
fix: rename master secret to link secret
Browse files Browse the repository at this point in the history
Signed-off-by: blu3beri <[email protected]>
  • Loading branch information
berendsliedrecht committed Mar 24, 2023
1 parent f8f91d7 commit 1f653fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/data_types/cred_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ mod cred_req_tests {

const ENTROPY: Option<&str> = Some("entropy");
const PROVER_DID: Option<&str> = Some(LEGACY_DID_IDENTIFIER);
const LINK_SERCET_ID: &str = "link:secret:id";
const LINK_SECRET_ID: &str = "link:secret:id";

fn cred_def() -> Result<(CredentialDefinition, CredentialKeyCorrectnessProof)> {
let credential_definition_issuer_id = "sample:id";
Expand Down Expand Up @@ -163,7 +163,7 @@ mod cred_req_tests {
None,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -183,7 +183,7 @@ mod cred_req_tests {
PROVER_DID,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -203,7 +203,7 @@ mod cred_req_tests {
PROVER_DID,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -223,7 +223,7 @@ mod cred_req_tests {
PROVER_DID,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -243,7 +243,7 @@ mod cred_req_tests {
ENTROPY,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -263,7 +263,7 @@ mod cred_req_tests {
None,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
);

Expand All @@ -283,7 +283,7 @@ mod cred_req_tests {
None,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
)
.unwrap();
Expand All @@ -306,7 +306,7 @@ mod cred_req_tests {
PROVER_DID,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
)
.unwrap();
Expand All @@ -329,7 +329,7 @@ mod cred_req_tests {
None,
&cred_def,
&link_secret,
LINK_SERCET_ID,
LINK_SECRET_ID,
&credential_offer,
)
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/data_types/link_secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mod link_secret_tests {
.try_clone()
.expect("Error cloning link secret")
.try_into()
.expect("error converting link secret");
.expect("error converting to master secret");

assert_eq!(
link_secret.0,
Expand Down

0 comments on commit 1f653fa

Please sign in to comment.