Skip to content

Commit

Permalink
remove array for refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Oct 18, 2023
1 parent 2afe86e commit a6fb225
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions protocol/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,29 +152,11 @@ type CredentialRefreshMessage struct {

// CredentialRefreshMessageBody is msg body for refresh message
type CredentialRefreshMessageBody struct {
Credentials []Refresh `json:"credentials"`
Credentials Refresh `json:"credentials"`
}

// Refresh is struct the represents refresh request
type Refresh struct {
ID string `json:"id"`
Reason string `json:"reason"`
}

// CredentialMultipleIssuanceMessage represent Iden3message for list of credential issuance
type CredentialMultipleIssuanceMessage struct {
ID string `json:"id"`
Typ iden3comm.MediaType `json:"typ,omitempty"`
Type iden3comm.ProtocolMessage `json:"type"`
ThreadID string `json:"thid,omitempty"`

Body MultipleIssuanceMessageBody `json:"body,omitempty"`

From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
}

// MultipleIssuanceMessageBody is struct the represents message when multiple credentials are issued
type MultipleIssuanceMessageBody struct {
Credentials []verifiable.W3CCredential `json:"credentials"`
}

0 comments on commit a6fb225

Please sign in to comment.