status

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package status implements a Verifiable Credential Status API Client.

Index

Constants

View Source
const (
	// RevokedMessage is the Client.VerifyStatus error message when the given verifiable.Credential is revoked.
	RevokedMessage = "revoked"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ValidatorGetter api.ValidatorGetter
	Resolver        api.StatusListVCURIResolver
}

Client verifies revocation status for Verifiable Credentials.

func (*Client) VerifyStatus

func (c *Client) VerifyStatus(credential *verifiable.Credential) error

VerifyStatus verifies the revocation status on the given Verifiable Credential, returning the errorstring "revoked" if the given credential's status is revoked, nil if the credential is not revoked, and a different error if verification fails.

Directories

Path Synopsis
Package api contains dependency-injection interfaces for Credential Status validation clients.
Package api contains dependency-injection interfaces for Credential Status validation clients.
internal
bitstring
Package bitstring provides functions for operating on byte slices as if they are 0-indexed arrays of bits, packed 8 bits to a byte, LSB-first.
Package bitstring provides functions for operating on byte slices as if they are 0-indexed arrays of bits, packed 8 bits to a byte, LSB-first.
identityhub
Package identityhub implements a subset of Identity Hub data models, to support requesting identity hub data.
Package identityhub implements a subset of Identity Hub data models, to support requesting identity hub data.
Package resolver provides a resolver for remotely-stored credential status list VCs.
Package resolver provides a resolver for remotely-stored credential status list VCs.
Package validator holds validation handlers for status fields for different formats of verifiable credential status list.
Package validator holds validation handlers for status fields for different formats of verifiable credential status list.
statuslist2021
Package statuslist2021 handles client-side validation and parsing for Credential Status fields of type StatusList2021Type, as per spec: https://w3c-ccg.github.io/vc-status-list-2021/
Package statuslist2021 handles client-side validation and parsing for Credential Status fields of type StatusList2021Type, as per spec: https://w3c-ccg.github.io/vc-status-list-2021/

Jump to

Keyboard shortcuts

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