Versions in this module Expand all Collapse all v1 v1.2.0 Sep 5, 2024 Changes in this version + func ExtractArrayValuesForSDJWTV5(obj map[string]interface{}) []string + type CwtType struct + Alg []string type Format + CwtVC *CwtType + CwtVP *CwtType v1.1.2 Jun 10, 2024 Changes in this version type MatchRequirementsOpt + func WithDefaultPresentationFormat(format string) MatchRequirementsOpt type MatchValue + DescriptorID string v1.1.1 Feb 22, 2024 v1.1.0 Nov 21, 2023 Changes in this version type MatchRequirementsOpt + func WithSDBBSProofCreator(sdBBSProofCreator *verifiable.BBSProofCreator) MatchRequirementsOpt v1.0.2 Sep 18, 2023 v1.0.1 Sep 15, 2023 v1.0.0 Sep 13, 2023 Changes in this version + const All + const CredentialApplicationJSONLDContextIRI + const CredentialApplicationJSONLDType + const DefinitionJSONSchemaV1 + const DefinitionJSONSchemaV2 + const FormatJWT + const FormatJWTVC + const FormatJWTVP + const FormatLDP + const FormatLDPVC + const FormatLDPVP + const Pick + const Preferred + const PresentationSubmissionJSONLDContextIRI + const PresentationSubmissionJSONLDType + const Required + var ErrNoCredentials = errors.New("credentials do not satisfy requirements") + type Constraints struct + Fields []*Field + IsHolder []*Holder + LimitDisclosure *Preference + SubjectIsIssuer *Preference + type Field struct + Filter *Filter + ID string + IntentToRetain bool + Optional bool + Path []string + Predicate *Preference + Purpose string + type Filter struct + Const StrOrInt + Contains map[string]interface{} + Enum []StrOrInt + ExclusiveMaximum StrOrInt + ExclusiveMinimum StrOrInt + Format string + MaxLength int + Maximum StrOrInt + MinLength int + Minimum StrOrInt + Not map[string]interface{} + Pattern string + Type *string + type Format struct + Jwt *JwtType + JwtVC *JwtType + JwtVP *JwtType + Ldp *LdpType + LdpVC *LdpType + LdpVP *LdpType + type Holder struct + Directive *Preference + FieldID []string + type InputDescriptor struct + Constraints *Constraints + Format *Format + Group []string + ID string + Metadata map[string]interface{} + Name string + Purpose string + Schema []*Schema + type InputDescriptorMapping struct + Format string + ID string + Path string + PathNested *InputDescriptorMapping + type JwtType struct + Alg []string + type LdpType struct + ProofType []string + type MatchOption func(*MatchOptions) + func WithCredentialOptions(options ...verifiable.CredentialOpt) MatchOption + func WithDisableSchemaValidation() MatchOption + func WithMergedSubmission(submission *PresentationSubmission) MatchOption + func WithMergedSubmissionMap(submissionMap map[string]interface{}) MatchOption + type MatchOptions struct + CredentialOptions []verifiable.CredentialOpt + DisableSchemaValidation bool + MergedSubmission *PresentationSubmission + MergedSubmissionMap map[string]interface{} + type MatchRequirementsOpt func(opts *matchRequirementsOpts) + func WithSDCredentialOptions(options ...verifiable.CredentialOpt) MatchRequirementsOpt + func WithSelectiveDisclosureApply() MatchRequirementsOpt + type MatchValue struct + Credential *verifiable.Credential + PresentationID string + type MatchedInputDescriptor struct + Constraints *Constraints + ID string + MatchedVCs []*verifiable.Credential + Name string + Purpose string + Schemas []*Schema + type MatchedSubmissionRequirement struct + Count int + Descriptors []*MatchedInputDescriptor + Max int + Min int + Name string + Nested []*MatchedSubmissionRequirement + Purpose string + Rule Selection + type Preference string + type PresentationDefinition struct + Format *Format + Frame map[string]interface{} + ID string + InputDescriptors []*InputDescriptor + Locale string + Name string + Purpose string + SubmissionRequirements []*SubmissionRequirement + func (pd *PresentationDefinition) CreateVP(credentials []*verifiable.Credential, documentLoader ld.DocumentLoader, ...) (*verifiable.Presentation, error) + func (pd *PresentationDefinition) CreateVPArray(credentials []*verifiable.Credential, documentLoader ld.DocumentLoader, ...) ([]*verifiable.Presentation, *PresentationSubmission, error) + func (pd *PresentationDefinition) Match(vpList []*verifiable.Presentation, contextLoader ld.DocumentLoader, ...) (map[string]MatchValue, error) + func (pd *PresentationDefinition) MatchSubmissionRequirement(credentials []*verifiable.Credential, documentLoader ld.DocumentLoader, ...) ([]*MatchedSubmissionRequirement, error) + func (pd *PresentationDefinition) ValidateSchema() error + type PresentationSubmission struct + DefinitionID string + DescriptorMap []*InputDescriptorMapping + ID string + Locale string + type Schema struct + Required bool + URI string + type Selection string + type StrOrInt interface + type SubmissionRequirement struct + Count int + From string + FromNested []*SubmissionRequirement + Max int + Min int + Name string + Purpose string + Rule Selection