Skip to content

Commit

Permalink
Reverte to use as the format name
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioPinheiro committed Oct 9, 2023
1 parent 0045018 commit d75a676
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Issue Credential Formats:
*/
enum IssueCredentialProposeFormat(val name: String) {
case Unsupported(other: String) extends IssueCredentialProposeFormat(other)
case JWT extends IssueCredentialProposeFormat("jwt/credential-propose@v1.0")
// case JWT extends IssueCredentialProposeFormat("jwt/credential-propose@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends IssueCredentialProposeFormat("prism/jwt") // TODO REMOVE
case Anoncred extends IssueCredentialProposeFormat("anoncreds/credential-filter@v1.0")
}

Expand All @@ -93,7 +94,8 @@ object IssueCredentialProposeFormat {
*/
enum IssueCredentialOfferFormat(val name: String) {
case Unsupported(other: String) extends IssueCredentialOfferFormat(other)
case JWT extends IssueCredentialOfferFormat("jwt/credential-offer@v1.0")
// case JWT extends IssueCredentialOfferFormat("jwt/credential-offer@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends IssueCredentialOfferFormat("prism/jwt") // TODO REMOVE
case Anoncred extends IssueCredentialOfferFormat("anoncreds/credential-offer@v1.0")
}

Expand All @@ -119,7 +121,8 @@ object IssueCredentialOfferFormat {
*/
enum IssueCredentialRequestFormat(val name: String) {
case Unsupported(other: String) extends IssueCredentialRequestFormat(other)
case JWT extends IssueCredentialRequestFormat("jwt/credential-request@v1.0")
// case JWT extends IssueCredentialRequestFormat("jwt/credential-request@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends IssueCredentialRequestFormat("prism/jwt") // TODO REMOVE
case Anoncred extends IssueCredentialRequestFormat("anoncreds/credential-request@v1.0")
}

Expand All @@ -143,7 +146,8 @@ object IssueCredentialRequestFormat {
*/
enum IssueCredentialIssuedFormat(val name: String) {
case Unsupported(other: String) extends IssueCredentialIssuedFormat(other)
case JWT extends IssueCredentialIssuedFormat("jwt/credential@v1.0")
// case JWT extends IssueCredentialIssuedFormat("jwt/credential@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends IssueCredentialIssuedFormat("prism/jwt") // TODO REMOVE
case Anoncred extends IssueCredentialIssuedFormat("anoncreds/credential@v1.0")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ Present Credential Formats:
*/
enum PresentCredentialProposeFormat(val name: String) {
case Unsupported(other: String) extends PresentCredentialProposeFormat(other)
case JWT extends PresentCredentialProposeFormat("jwt/proof-request@v1.0")
// case JWT extends PresentCredentialProposeFormat("jwt/proof-request@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends PresentCredentialProposeFormat("prism/jwt") // TODO REMOVE
case Anoncred extends PresentCredentialProposeFormat("anoncreds/proof-request@v1.0")
}

Expand All @@ -71,7 +72,8 @@ object PresentCredentialProposeFormat {
*/
enum PresentCredentialRequestFormat(val name: String) {
case Unsupported(other: String) extends PresentCredentialRequestFormat(other)
case JWT extends PresentCredentialRequestFormat("jwt/proof-request@v1.0")
// case JWT extends PresentCredentialRequestFormat("jwt/proof-request@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends PresentCredentialRequestFormat("prism/jwt") // TODO REMOVE
case Anoncred extends PresentCredentialRequestFormat("anoncreds/proof-request@v1.0")
}

Expand All @@ -95,7 +97,8 @@ object PresentCredentialRequestFormat {
*/
enum PresentCredentialFormat(val name: String) {
case Unsupported(other: String) extends PresentCredentialFormat(other)
case JWT extends PresentCredentialFormat("jwt/proof-request@v1.0")
// case JWT extends PresentCredentialFormat("jwt/proof-request@v1.0") // TODO FOLLOW specs for JWT VC
case JWT extends PresentCredentialFormat("prism/jwt") // TODO REMOVE
case Anoncred extends PresentCredentialFormat("anoncreds/proof-request@v1.0")
}

Expand Down

0 comments on commit d75a676

Please sign in to comment.