Documentation ¶
Index ¶
Constants ¶
const RevocationDocumentType = "application/vc+json;type=revocation"
RevocationDocumentType holds the content type used in network documents which contain Revocation messages of credentials
const RevocationLDDocumentType = "application/ld+json;type=revocation"
RevocationLDDocumentType holds the content type used in network documents which contain Revocation messages of credentials in JSON-LD form
const VcDocumentType = "application/vc+json"
VcDocumentType holds the content type used in network documents which contain Verifiable Credentials
Variables ¶
var ErrInvalidCredential = errors.New("invalid credential")
ErrInvalidCredential is returned when validation failed
var ErrInvalidIssuer = errors.New("invalid credential issuer")
ErrInvalidIssuer is returned when a credential is issued by a DID that is unknown or when the private key is missing.
var ErrInvalidPeriod = errors.New("credential not valid at given time")
ErrInvalidPeriod is returned when the credential is not valid at the given time.
var ErrInvalidSubject = errors.New("invalid credential subject")
ErrInvalidSubject is returned when a credential is issued to a DID that is unknown or revoked.
var ErrNotFound = errors.New("credential not found")
ErrNotFound is returned when a credential can not be found based on its ID.
var ErrRevoked = errors.New("credential is revoked")
ErrRevoked is returned when a credential has been revoked and the required action requires it to not be revoked.
var ErrUntrusted = errors.New("credential issuer is untrusted")
ErrUntrusted is returned when a credential is resolved or searched but its issuer is not trusted.
Functions ¶
This section is empty.
Types ¶
This section is empty.