vcutil

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefVCContext = "https://www.w3.org/2018/credentials/v1"
)

Variables

This section is empty.

Functions

func AppendSignatureTypeContext added in v1.5.0

func AppendSignatureTypeContext(context []string, signatureType vcsverifiable.SignatureType,
) []string

AppendSignatureTypeContext appends context for JSONWebSignature2020 and BbsBlsSignature2020.

func CreateIssuer added in v1.5.0

func CreateIssuer(issuerDID, issuerName string) *verifiable.Issuer

CreateIssuer creates credential issuer for profile if profile.OverwriteIssuer=true or credential issuer is missing. Credential issuer will always be DID.

func DecodeTypedIDFromJSONRaw

func DecodeTypedIDFromJSONRaw(typedIDBytes json.RawMessage) ([]verifiable.TypedID, error)

DecodeTypedIDFromJSONRaw decodes verifiable type ID from JSON raw.

func GetContextsFromJSONRaw

func GetContextsFromJSONRaw(raw json.RawMessage) ([]string, error)

GetContextsFromJSONRaw reads contexts from raw JSON.

func PrependCredentialPrefix

func PrependCredentialPrefix(credential *verifiable.Credential, prefix string) *verifiable.Credential

PrependCredentialPrefix prepends prefix to credential.ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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