Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONTEXT_DID_WELL_KNOWN_CONFIG = "https://identity.foundation/.well-known/did-configuration/v1" CONTEXT_DOMAIN_LINKAGE_CREDENTIAL = "https://www.w3.org/2018/credentials/v1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialSubject ¶
type DIDWellKnownConfiguration ¶
type DIDWellKnownConfiguration struct { Context string `json:"@context"` LinkedDIDs []DomainLinkageCredential `json:"linked_dids"` }
type DomainLinkageCredential ¶
type DomainLinkageCredential struct { Context []string `json:"@context"` Issuer string `json:"issuer"` IssuanceDate string `json:"issuanceDate"` ExpirationDate string `json:"expirationDate"` Type []string `json:"type"` Subject CredentialSubject `json:"credentialSubject"` Proof Proof `json:"proof"` }
type HTTPService ¶
func CreateHTTPService ¶
func CreateHTTPService(addr string, port int, jwtKey string) *HTTPService
func (*HTTPService) ListenAndServe ¶
func (svc *HTTPService) ListenAndServe() error
func (*HTTPService) ServeDIDWellKnownConfig ¶
func (svc *HTTPService) ServeDIDWellKnownConfig(w http.ResponseWriter, r *http.Request)
func (*HTTPService) ServeFairXWellKnownConfig ¶
func (svc *HTTPService) ServeFairXWellKnownConfig(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.