Skip to content

Commit

Permalink
Altering schema definitions to incorporate optional fields for VC int…
Browse files Browse the repository at this point in the history
…erfaces
  • Loading branch information
Mark Krasner authored and Mark Krasner committed Nov 16, 2023
1 parent 4f4af10 commit de44036
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/composedb/examples/verifiable-credentials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,21 @@ interface VerifiableCredential
context: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
type: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
credentialSchema: CredentialSchema!
credentialStatus: CredentialStatus
issuanceDate: DateTime!
expirationDate: DateTime
}

type Issuer {
id: String! @string(maxLength: 1000)
name: String @string(maxLength: 1000)
}

type CredentialStatus {
id: String! @string(maxLength: 1000)
type: String! @string(maxLength: 1000)
}

type CredentialSchema {
id: String! @string(maxLength: 1000)
type: String! @string(maxLength: 1000)
Expand All @@ -349,11 +356,13 @@ interface VCEIP712Proof implements VerifiableCredential
context: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
type: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
credentialSchema: CredentialSchema!
credentialStatus: CredentialStatus
issuanceDate: DateTime!
expirationDate: DateTime
proof: ProofEIP712!
}

## generalized JWT proof type
## generalized JWT proof interface
interface VCJWTProof implements VerifiableCredential
@createModel(description: "A verifiable credential interface of type JWT")
{
Expand All @@ -362,7 +371,9 @@ interface VCJWTProof implements VerifiableCredential
context: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
type: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
credentialSchema: CredentialSchema!
credentialStatus: CredentialStatus
issuanceDate: DateTime!
expirationDate: DateTime
proof: ProofJWT!
}

Expand Down Expand Up @@ -421,7 +432,9 @@ type VerifiableCredentialEIP712 implements VerifiableCredential & VCEIP712Proof
context: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
type: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
credentialSchema: CredentialSchema!
credentialStatus: CredentialStatus
issuanceDate: DateTime!
expirationDate: DateTime
proof: ProofEIP712!
credentialSubject: CredentialSubject!
}
Expand All @@ -436,7 +449,9 @@ type VerifiableCredentialJWT implements VerifiableCredential & VCJWTProof
context: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
type: [String!]! @string(maxLength: 1000) @list(maxLength: 100)
credentialSchema: CredentialSchema!
credentialStatus: CredentialStatus
issuanceDate: DateTime!
expirationDate: DateTime
proof: ProofJWT!
credentialSubject: CredentialSubject!
}
Expand Down

0 comments on commit de44036

Please sign in to comment.