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