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

removed required prover_did #57

Merged
merged 3 commits into from
Jan 12, 2023

Conversation

berendsliedrecht
Copy link
Contributor

@berendsliedrecht berendsliedrecht commented Jan 11, 2023

closes #52

Implemented according to: hyperledger/anoncreds-spec#107 (comment)

Also removed the dependency on indy_utils::DidValue which makes #40 a whole lot easier.

Signed-off-by: blu3beri blu3beri@proton.me

Signed-off-by: blu3beri <blu3beri@proton.me>
@@ -3,7 +3,7 @@ mod utils {
pub use indy_utils::{qualifiable, Qualifiable};
}

pub use indy_utils::did;
//pub use indy_utils::did;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented

@@ -46,6 +48,10 @@ pub fn create_credential_request(
credential_offer
);

let rand_str = String::from_utf8(thread_rng().sample_iter(&Alphanumeric).take(22).collect())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value prover_did should become optional in the whole credential request. If not present in the request, the issuer will generate it.

So if no prover_did is present we don't include it in the request

Signed-off-by: blu3beri <blu3beri@proton.me>
@berendsliedrecht
Copy link
Contributor Author

@TimoGlastra I think I fixed the issue, it was a bit unclear to me but this should hopefully be it.

Signed-off-by: blu3beri <blu3beri@proton.me>
@berendsliedrecht berendsliedrecht merged commit 53636ab into hyperledger:main Jan 12, 2023
@berendsliedrecht berendsliedrecht deleted the ignore-prover-did branch January 12, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore the prover_did property from the credential request
2 participants