types

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const RevocationDocumentType = "application/vc+json;type=revocation"

RevocationDocumentType holds the content type used in network documents which contain Revocation messages of credentials

View Source
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

View Source
const VcDocumentType = "application/vc+json"

VcDocumentType holds the content type used in network documents which contain Verifiable Credentials

Variables

View Source
var ErrInvalidCredential = errors.New("invalid credential")

ErrInvalidCredential is returned when validation failed

View Source
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.

View Source
var ErrInvalidPeriod = errors.New("credential not valid at given time")

ErrInvalidPeriod is returned when the credential is not valid at the given time.

View Source
var ErrInvalidSubject = errors.New("invalid credential subject")

ErrInvalidSubject is returned when a credential is issued to a DID that is unknown or revoked.

View Source
var ErrNotFound = errors.New("credential not found")

ErrNotFound is returned when a credential can not be found based on its ID.

View Source
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.

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL