From 9499e4b8e5484c9ad4e6086d9a8f41f421edd883 Mon Sep 17 00:00:00 2001 From: GopherDID <74898029+vmidyllic@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:29:44 +0200 Subject: [PATCH] add services (#90) * add services --- verifiable/constants.go | 6 ++++++ verifiable/did_doc.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/verifiable/constants.go b/verifiable/constants.go index b2c93af..9ed489e 100644 --- a/verifiable/constants.go +++ b/verifiable/constants.go @@ -51,6 +51,12 @@ const ( // PushNotificationServiceType is service type for delivering push notifications to identity PushNotificationServiceType = "push-notification" + // Iden3MobileServiceType is service type for mobile function invoke to reach user agent in iden3 protocol + Iden3MobileServiceType = "Iden3MobileServiceV1" + + // Iden3WebServiceType is service type for web redirects as a way to reach user agent in iden3 protocol + Iden3WebServiceType = "Iden3WebRedirectServiceV1" + // CredentialMerklizedRootPositionIndex is merklized root position of W3CCredential in the IndexDataSlotA (core claim) CredentialMerklizedRootPositionIndex = "index" diff --git a/verifiable/did_doc.go b/verifiable/did_doc.go index d134421..79cf18a 100644 --- a/verifiable/did_doc.go +++ b/verifiable/did_doc.go @@ -24,6 +24,12 @@ type Service struct { ServiceEndpoint string `json:"serviceEndpoint"` } +// WebRedirectService describes the service of web redirection +type WebRedirectService struct { + Service + Method string `json:"method"` +} + // PushService describes the services of push notifications type PushService struct { Service