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

support refresh credential message #36

Merged
merged 7 commits into from
Oct 30, 2023

Conversation

ilya-korotya
Copy link
Contributor

No description provided.


// CredentialRefreshMessageBody is msg body for refresh message
type CredentialRefreshMessageBody struct {
ID string `json:"id"`
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it should be an array of ID's like an credential offer, and reason field might be applicable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. In case we have multi proof request and all claims are revoked we need to refresh the scope of creds.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that the reason field is redundant. What should the user submit in it? We already know that the only case where the refresh service can receive this message is a reissue the credential.

Copy link
Contributor

Choose a reason for hiding this comment

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

it is always useful to let leave a place for explanation.


// CredentialRefreshMessageBody is msg body for refresh message
type CredentialRefreshMessageBody struct {
Refresh []Refresh `json:"refresh"`
Copy link
Contributor

Choose a reason for hiding this comment

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

let's call it Credentials json:"credentials" as for Offer

Credentials []CredentialOffer `json:"credentials"`

vmidyllic
vmidyllic previously approved these changes Oct 16, 2023

// CredentialRefreshMessageBody is msg body for refresh message
type CredentialRefreshMessageBody struct {
Credential Refresh `json:"credentials"`
Copy link
Contributor

Choose a reason for hiding this comment

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

why do I need a credential field if it is only one credential

@ilya-korotya ilya-korotya merged commit 7a0511d into main Oct 30, 2023
5 checks passed
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.

2 participants