From 3c876a9993c4bb48af2c289a095d4a6144a34f12 Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Fri, 29 Nov 2019 12:08:57 +0100 Subject: [PATCH] fix: Adding tag to vc/vp --- packages/daf-w3c/src/graphql.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/daf-w3c/src/graphql.ts b/packages/daf-w3c/src/graphql.ts index 58e2f3626..e4812cd8d 100644 --- a/packages/daf-w3c/src/graphql.ts +++ b/packages/daf-w3c/src/graphql.ts @@ -12,6 +12,7 @@ interface VCInput extends VC { interface VerifiableCredentialInput extends VerifiableCredentialPayload { vc: VCInput + tag: string } interface VPInput extends VP { @@ -20,6 +21,7 @@ interface VPInput extends VP { interface VerifiablePresentationInput extends PresentationPayload { vp: VPInput + tag: string } const actionSignVc = async ( @@ -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, @@ -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, @@ -99,6 +103,7 @@ export const typeDefs = ` aud: String exp: Int jti: String + tag: String vc: VC! } @@ -113,6 +118,7 @@ export const typeDefs = ` aud: String exp: Int jti: String + tag: String vp: VP! }