Skip to content

Commit

Permalink
add services (#90)
Browse files Browse the repository at this point in the history
* add services
  • Loading branch information
vmidyllic authored Mar 19, 2024
1 parent adbd0a5 commit 9499e4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions verifiable/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 6 additions & 0 deletions verifiable/did_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9499e4b

Please sign in to comment.