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/ |
Click to show internal directories.
Click to hide internal directories.