Versions in this module Expand all Collapse all v0 v0.3.0 Oct 23, 2023 v0.2.0 Oct 23, 2023 Changes in this version + const BuilderEmptyError + const VerifiableCredentialIDProperty + const VerifiableCredentialJSONSchemaProperty + const VerifiableCredentialType + const VerifiableCredentialsLinkedDataContext + const VerifiablePresentationType + type CredentialSchema struct + DigestSRI string + ID string + Type string + type CredentialSubject map[string]any + func (cs CredentialSubject) GetID() string + func (cs CredentialSubject) GetJSONSchema() map[string]any + type DefaultCredentialStatus struct + ID string + Type string + type Prohibition struct + Action []string + Assignee string + Assigner string + Target string + type RefreshService struct + ID string + Type string + type TermsOfUse struct + ID string + Profile string + Prohibition []Prohibition + Type string + type VerifiableCredential struct + Context any + CredentialSchema *CredentialSchema + CredentialStatus any + CredentialSubject CredentialSubject + Evidence []any + ExpirationDate string + ID string + IssuanceDate string + Issuer any + Proof *crypto.Proof + RefreshService *RefreshService + TermsOfUse []TermsOfUse + Type any + func (v *VerifiableCredential) GetProof() *crypto.Proof + func (v *VerifiableCredential) IsEmpty() bool + func (v *VerifiableCredential) IsValid() error + func (v *VerifiableCredential) IssuerID() string + func (v *VerifiableCredential) SetProof(p *crypto.Proof) + type VerifiableCredentialBuilder struct + func NewVerifiableCredentialBuilder() VerifiableCredentialBuilder + func (vcb *VerifiableCredentialBuilder) AddContext(context any) error + func (vcb *VerifiableCredentialBuilder) AddType(t any) error + func (vcb *VerifiableCredentialBuilder) Build() (*VerifiableCredential, error) + func (vcb *VerifiableCredentialBuilder) IsEmpty() bool + func (vcb *VerifiableCredentialBuilder) SetCredentialSchema(schema CredentialSchema) error + func (vcb *VerifiableCredentialBuilder) SetCredentialStatus(status any) error + func (vcb *VerifiableCredentialBuilder) SetCredentialSubject(subject CredentialSubject) error + func (vcb *VerifiableCredentialBuilder) SetEvidence(evidence []any) error + func (vcb *VerifiableCredentialBuilder) SetExpirationDate(dateTime string) error + func (vcb *VerifiableCredentialBuilder) SetID(id string) error + func (vcb *VerifiableCredentialBuilder) SetIssuanceDate(dateTime string) error + func (vcb *VerifiableCredentialBuilder) SetIssuer(issuer any) error + func (vcb *VerifiableCredentialBuilder) SetRefreshService(refreshService RefreshService) error + func (vcb *VerifiableCredentialBuilder) SetTermsOfUse(terms []TermsOfUse) error + type VerifiablePresentation struct + Context any + Holder string + ID string + PresentationSubmission any + Proof *crypto.Proof + Type any + VerifiableCredential []any + func (v *VerifiablePresentation) GetProof() *crypto.Proof + func (v *VerifiablePresentation) IsEmpty() bool + func (v *VerifiablePresentation) IsValid() error + func (v *VerifiablePresentation) SetProof(p *crypto.Proof) + type VerifiablePresentationBuilder struct + func NewVerifiablePresentationBuilder() VerifiablePresentationBuilder + func (vpb *VerifiablePresentationBuilder) AddContext(context any) error + func (vpb *VerifiablePresentationBuilder) AddType(t any) error + func (vpb *VerifiablePresentationBuilder) AddVerifiableCredentials(creds ...any) error + func (vpb *VerifiablePresentationBuilder) Build() (*VerifiablePresentation, error) + func (vpb *VerifiablePresentationBuilder) IsEmpty() bool + func (vpb *VerifiablePresentationBuilder) SetHolder(holder string) error + func (vpb *VerifiablePresentationBuilder) SetID(id string) error + func (vpb *VerifiablePresentationBuilder) SetPresentationSubmission(ps any) error