Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add services #90

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading