diff --git a/protocol/credentials.go b/protocol/credentials.go index 5603d79..501c2f1 100644 --- a/protocol/credentials.go +++ b/protocol/credentials.go @@ -152,7 +152,7 @@ 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 @@ -160,21 +160,3 @@ 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"` -}