-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pollux): validate the current record state on each protocol acti…
…on received (#193) * chore(pollux): switch back to shared 0.1.0 * fix(pollux): ensure record has the right state on each action * chore(pollux): bump 'shared' dep version to 0.2.0 * chore(connect): update 'update_at' attribute in connect record appropriately * fix(connect): do not accept the same invitation twice + check protocol state is valid on each update * fix(prism-agent): fail on DIDComm sender side when receiving non-success HTTP response status from peer * fix(pollux): check DID string provided in 'subjectId' is valid and supported * chore(connect): bump version to 0.3.0-SNAPSHOT * chore(connect): bump mercury version to 0.7.0-SNAPSHOT * chore(connect): bump mercury version to 0.8.0 * chore(pollux): bump mercury version to 0.8.0 * chore(pollux): simplify CredentialService error structure * chore(pollux): rename IssueCredentialError to CredentialServiceError * chore(connect): rename ConnectError to ConnectionServiceError * chore(prism-agent): undo change in MercuryUtils to allow pollux/connect merge & release * chore(pollux): undo changes in version.sbt (connect & pollux)
- Loading branch information
1 parent
9d65380
commit 6fffde2
Showing
12 changed files
with
186 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
.../scala/io/iohk/atala/pollux/core/model/error/CreateCredentialPayloadFromRecordError.scala
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...ib/core/src/main/scala/io/iohk/atala/pollux/core/model/error/CredentialServiceError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.iohk.atala.pollux.core.model.error | ||
|
||
import java.util.UUID | ||
import io.iohk.atala.pollux.vc.jwt.W3cCredentialPayload | ||
|
||
sealed trait CredentialServiceError | ||
|
||
object CredentialServiceError { | ||
final case class RepositoryError(cause: Throwable) extends CredentialServiceError | ||
final case class RecordIdNotFound(recordId: UUID) extends CredentialServiceError | ||
final case class ThreadIdNotFound(thid: UUID) extends CredentialServiceError | ||
final case class InvalidFlowStateError(msg: String) extends CredentialServiceError | ||
final case class UnexpectedError(msg: String) extends CredentialServiceError | ||
final case class UnsupportedDidFormat(did: String) extends CredentialServiceError | ||
final case class CreateCredentialPayloadFromRecordError(cause: Throwable) extends CredentialServiceError | ||
final case class CredentialIdNotDefined(credential: W3cCredentialPayload) extends CredentialServiceError | ||
final case class IrisError(cause: Throwable) extends CredentialServiceError | ||
} |
13 changes: 0 additions & 13 deletions
13
.../lib/core/src/main/scala/io/iohk/atala/pollux/core/model/error/IssueCredentialError.scala
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ala/io/iohk/atala/pollux/core/model/error/MarkCredentialRecordsAsPublishQueuedError.scala
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...re/src/main/scala/io/iohk/atala/pollux/core/model/error/PublishCredentialBatchError.scala
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.