Skip to content

Commit

Permalink
fix: Adding tag to vc/vp
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Nov 29, 2019
1 parent 04b71a9 commit 3c876a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/daf-w3c/src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface VCInput extends VC {

interface VerifiableCredentialInput extends VerifiableCredentialPayload {
vc: VCInput
tag: string
}

interface VPInput extends VP {
Expand All @@ -20,6 +21,7 @@ interface VPInput extends VP {

interface VerifiablePresentationInput extends PresentationPayload {
vp: VPInput
tag: string
}

const actionSignVc = async (
Expand All @@ -37,6 +39,7 @@ const actionSignVc = async (
nbf: data.nbf,
jti: data.jti,
aud: data.aud,
tag: data.tag,
vc: {
type: data.vc.type,
'@context': data.vc.context,
Expand Down Expand Up @@ -64,6 +67,7 @@ const actionSignVp = async (
nbf: data.nbf,
jti: data.jti,
aud: data.aud,
tag: data.tag,
vp: {
type: data.vp.type,
'@context': data.vp.context,
Expand Down Expand Up @@ -99,6 +103,7 @@ export const typeDefs = `
aud: String
exp: Int
jti: String
tag: String
vc: VC!
}
Expand All @@ -113,6 +118,7 @@ export const typeDefs = `
aud: String
exp: Int
jti: String
tag: String
vp: VP!
}
Expand Down

0 comments on commit 3c876a9

Please sign in to comment.