-
Notifications
You must be signed in to change notification settings - Fork 1
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
support refresh credential message #36
Conversation
protocol/credentials.go
Outdated
|
||
// CredentialRefreshMessageBody is msg body for refresh message | ||
type CredentialRefreshMessageBody struct { | ||
ID string `json:"id"` |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
protocol/credentials.go
Outdated
|
||
// CredentialRefreshMessageBody is msg body for refresh message | ||
type CredentialRefreshMessageBody struct { | ||
Refresh []Refresh `json:"refresh"` |
There was a problem hiding this comment.
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
iden3comm/protocol/credentials.go
Line 64 in 68b9ee9
Credentials []CredentialOffer `json:"credentials"` |
protocol/credentials.go
Outdated
|
||
// CredentialRefreshMessageBody is msg body for refresh message | ||
type CredentialRefreshMessageBody struct { | ||
Credential Refresh `json:"credentials"` |
There was a problem hiding this comment.
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
No description provided.