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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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