statustype

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// RevocationListIndex identifies the bit position of the status value of the VC.
	//  VC > Status > CustomFields key.
	RevocationListIndex = "revocationListIndex"
	// RevocationListCredential stores the link to the revocation list VC.
	//  VC > Status > CustomFields key.
	RevocationListCredential = "revocationListCredential"

	RevocationList2020Context = "https://w3id.org/vc-revocation-list-2020/v1"
)
View Source
const (

	// StatusList2021VCSubjectType is the subject type of status list VC.
	// 	status list VC > Subject > Type
	StatusList2021VCSubjectType = "StatusList2021"
	// StatusListIndex identifies the bit position of the status value of the VC.
	//  VC > Status > CustomFields key.
	StatusListIndex = "statusListIndex"
	// StatusListCredential stores the link to the status list VC.
	//  VC > Status > CustomFields key.
	StatusListCredential = "statusListCredential"
	// StatusPurpose for StatusList2021.
	//  VC > Status > CustomFields key. Only "revocation" value is supported.
	StatusPurpose = "statusPurpose"
	// StatusList2021Context for StatusList2021.
	StatusList2021Context = "https://w3id.org/vc/status-list/2021/v1"
)
View Source
const (

	// RevocationList2021Context is the context URL for Revocation list 2021.
	RevocationList2021Context = "https://w3c-ccg.github.io/vc-revocation-list-2021/contexts/v1.jsonld"
)

Variables

This section is empty.

Functions

func GetVCStatusProcessor

func GetVCStatusProcessor(vcStatusListType vcapi.StatusType) (vcapi.StatusProcessor, error)

GetVCStatusProcessor returns statustype.StatusProcessor.

func NewRevocationList2020Processor

func NewRevocationList2020Processor() *revocationList2020Processor

NewRevocationList2020Processor returns new revocationList2020Processor.

func NewRevocationList2021Processor

func NewRevocationList2021Processor() *revocationList2021Processor

NewRevocationList2021Processor returns new revocationList2021Processor.

func NewStatusList2021Processor

func NewStatusList2021Processor() *statusList2021Processor

NewStatusList2021Processor returns new statusList2021Processor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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