Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialChecks ¶
type CredentialChecks struct {
Proof bool `json:"proof,omitempty"`
Format []vcsverifiable.Format `json:"format,omitempty"`
Status bool `json:"status,omitempty"`
CredentialExpiry bool `json:"credentialExpiry,omitempty"`
Strict bool `json:"strict,omitempty"`
LinkedDomain bool `json:"linkedDomain,omitempty"`
}
CredentialChecks are checks to be performed during credential verification.
type CredentialMetaData ¶
type CredentialMetaData struct {
CredentialsSupported []map[string]interface{} `json:"credentials_supported"`
}
type CredentialTemplate ¶
type CredentialTemplate struct {
Contexts []string `json:"contexts"`
ID string `json:"id"`
Type string `json:"type"`
CredentialSubject json.RawMessage `json:"credentialSubject"`
CredentialDefaultExpirationDuration *time.Duration `json:"credentialDefaultExpirationDuration"`
Checks CredentialTemplateChecks `json:"checks"`
}
type CredentialTemplateChecks ¶
type CredentialTemplateChecks struct {
Strict bool `json:"strict,omitempty"`
}
type Issuer ¶
type Issuer struct {
ID ID `json:"id"`
Version Version `json:"version"`
GroupID ID `json:"groupID"`
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
Active bool `json:"active"`
OIDCConfig *OIDC4CIConfig `json:"oidcConfig"`
OrganizationID string `json:"organizationID,omitempty"`
VCConfig *VCConfig `json:"vcConfig"`
KMSConfig *vcskms.Config `json:"kmsConfig"`
SigningDID *SigningDID `json:"signingDID"`
CredentialTemplates []*CredentialTemplate `json:"credentialTemplates,omitempty"`
WebHook string `json:"webHook,omitempty"`
CredentialMetaData *CredentialMetaData `json:"credentialMetadata"`
}
Issuer profile.
type OIDC4CIConfig ¶
type OIDC4CIConfig struct {
IssuerWellKnownURL string `json:"issuer_well_known"`
ClientID string `json:"client_id"`
ClientSecretHandle string `json:"client_secret_handle"`
Scope []string `json:"scope"`
RedirectURI string `json:"redirect_uri"`
}
OIDC4CIConfig is issuer's OIDC configuration used during OIDC credential issuance flow.
type OIDC4VPConfig ¶
type OIDC4VPConfig struct {
ROSigningAlgorithm vcsverifiable.SignatureType `json:"roSigningAlgorithm,omitempty"`
DIDMethod Method `json:"didMethod,omitempty"`
KeyType kms.KeyType `json:"keyType,omitempty"`
}
OIDC4VPConfig store config for verifier did that used to sign request object in oidc4vp process.
type PresentationChecks ¶
type PresentationChecks struct {
Proof bool `json:"proof,omitempty"`
VCSubject bool `json:"vcSubject,omitempty"`
Format []vcsverifiable.Format `json:"format,omitempty"`
}
PresentationChecks are checks to be performed during presentation verification.
type SigningDID ¶
type SigningDID struct {
DID string `json:"did,omitempty"`
Creator string `json:"creator,omitempty"`
KMSKeyID string `json:"kmsKeyID,omitempty"`
UpdateKeyURL string `json:"updateKeyURL,omitempty"`
RecoveryKeyURL string `json:"recoveryKeyURL,omitempty"`
}
SigningDID contains information about profile signing did.
type StatusConfig ¶
type StatusConfig struct {
Type vc.StatusType `json:"type"`
Disable bool `json:"disable"`
}
StatusConfig represents the VC status configuration.
type VCConfig ¶
type VCConfig struct {
Format vcsverifiable.Format `json:"format,omitempty"`
SigningAlgorithm vcsverifiable.SignatureType `json:"signingAlgorithm,omitempty"`
KeyType kms.KeyType `json:"keyType,omitempty"`
DIDMethod Method `json:"didMethod,omitempty"`
SignatureRepresentation verifiable.SignatureRepresentation `json:"signatureRepresentation,omitempty"`
Status StatusConfig `json:"status,omitempty"`
Context []string `json:"context,omitempty"`
SDJWT vc.SDJWT `json:"sdjwt,omitempty"`
}
VCConfig describes how to sign verifiable credentials.
type VerificationChecks ¶
type VerificationChecks struct {
Credential CredentialChecks `json:"credential,omitempty"`
Presentation *PresentationChecks `json:"presentation,omitempty"`
}
VerificationChecks are checks to be performed for verifying credentials and presentations.
type Verifier ¶
type Verifier struct {
ID ID `json:"id,omitempty"`
Version Version `json:"version,omitempty"`
Name string `json:"name,omitempty"`
URL string `json:"url,omitempty"`
Active bool `json:"active,omitempty"`
OrganizationID string `json:"organizationID,omitempty"`
Checks *VerificationChecks `json:"checks,omitempty"`
OIDCConfig *OIDC4VPConfig `json:"oidcConfig,omitempty"`
KMSConfig *vcskms.Config `json:"kmsConfig,omitempty"`
SigningDID *SigningDID `json:"signingDID,omitempty"`
PresentationDefinitions []*presexch.PresentationDefinition `json:"presentationDefinitions,omitempty"`
WebHook string `json:"webHook,omitempty"`
}
Verifier profile.