Versions in this module Expand all Collapse all v0 v0.0.1 Jul 4, 2026 Changes in this version + const AuthorityTypeAKI + const AuthorityTypeETSITL + const AuthorityTypeOpenIDFederation + const FormatMdoc + const FormatSDJWT + var ErrInvalid = errors.New("dcql: invalid query") + var ErrParse = errors.New("dcql: parse") + func Resolve(format string, claims map[string]any, path ClaimPath) ([]any, error) + type AuthorityRef struct + AKIs []string + FederationIDs []string + TrustedListURIs []string + type Candidate struct + Claims map[string]any + DoctypeOrVCT string + Format string + HolderBound bool + IssuerAuthority AuthorityRef + QueryCredID string + type ClaimPath []PathElement + func NewPath(elems ...PathElement) ClaimPath + func (p *ClaimPath) UnmarshalJSON(b []byte) error + func (p ClaimPath) Equal(o ClaimPath) bool + func (p ClaimPath) MarshalJSON() ([]byte, error) + func (p ClaimPath) String() string + type ClaimsQuery struct + ID string + Path ClaimPath + Values []any + type CredentialQuery struct + ClaimSets [][]string + Claims []ClaimsQuery + Format string + ID string + Meta *Meta + Multiple bool + RequireCryptographicHolderBinding *bool + TrustedAuthorities []TrustedAuthority + func (c *CredentialQuery) HolderBindingRequired() bool + type CredentialSetQuery struct + Options [][]string + Required *bool + func (s *CredentialSetQuery) IsRequired() bool + type MatchResult struct + ByCredential map[string][]string + Satisfied bool + Unmet []Unmet + type Meta struct + DoctypeValue string + VCTValues []string + type PathElement struct + Index int + Key string + Kind PathKind + func Index(i int) PathElement + func Key(s string) PathElement + func Wildcard() PathElement + type PathKind uint8 + const KindIndex + const KindKey + const KindWildcard + type Query struct + CredentialSets []CredentialSetQuery + Credentials []CredentialQuery + func Parse(raw []byte) (*Query, error) + func PresetMDLDrivingPrivileges() *Query + func PresetPIDAgeOver18() *Query + func PresetPIDFull() *Query + func (q *Query) Match(cands []Candidate) MatchResult + func (q *Query) Validate() error + func (q *Query) WithinScope(registered []RegisteredCredential) (bool, []string) + type RegisteredCredential struct + AllClaims bool + Claims []ClaimPath + DoctypesOrVCTs []string + Format string + type TrustedAuthority struct + Type string + Values []string + type Unmet struct + CredentialID string + Paths []string + Reason UnmetReason + SetIndex int + type UnmetReason string + const UnmetAuthority + const UnmetClaims + const UnmetFormat + const UnmetHolderBinding + const UnmetMeta + const UnmetMultiple + const UnmetNoCandidate + const UnmetSet + const UnmetUnknownQuery + type ValidationError struct + Msg string + Pos string + func (e *ValidationError) Error() string + func (e *ValidationError) Is(target error) bool