Documentation
¶
Overview ¶
Package status implements a Verifiable Credential Status API Client.
Index ¶
Constants ¶
View Source
const ( // StatusPurposeRevocation is the purpose of the status list entry for revocation. StatusPurposeRevocation = "revocation" // StatusPurposeSuspension is the purpose of the status list entry for suspension. StatusPurposeSuspension = "suspension" )
Variables ¶
View Source
var ( // ErrRevoked is the Client.VerifyStatus error when the given verifiable.Credential is revoked. ErrRevoked = errors.New("revoked") // ErrSuspended is the Client.VerifyStatus error when the given verifiable.Credential is suspended. ErrSuspended = errors.New("suspended") )
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 - "suspended" if the given credential's status is suspended - nil if the credential is not revoked or suspended, 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. |
|
bitstringstatus
Package bitstringstatus handles client-side validation and parsing for Credential Status fields of type BitstringStatusList, as per spec: https://www.w3.org/TR/vc-bitstring-status-list/
|
Package bitstringstatus handles client-side validation and parsing for Credential Status fields of type BitstringStatusList, as per spec: https://www.w3.org/TR/vc-bitstring-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.