Documentation ¶
Index ¶
- Constants
- func DecodeTypedIDFromJSONRaw(typedIDBytes json.RawMessage) ([]verifiable.TypedID, error)
- func GetContextsFromJSONRaw(raw json.RawMessage) ([]string, error)
- func PrependCredentialPrefix(credential *verifiable.Credential, prefix string)
- func UpdateIssuer(credential *verifiable.Credential, issuerDID, issuerName string, ...)
- func UpdateSignatureTypeContext(credential *verifiable.Credential, signatureType vcsverifiable.SignatureType)
Constants ¶
View Source
const (
DefVCContext = "https://www.w3.org/2018/credentials/v1"
)
Variables ¶
This section is empty.
Functions ¶
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)
PrependCredentialPrefix prepends prefix to credential.ID.
func UpdateIssuer ¶
func UpdateIssuer(credential *verifiable.Credential, issuerDID, issuerName string, overwriteIssuer bool)
UpdateIssuer overrides credential issuer for profile if profile.OverwriteIssuer=true or credential issuer is missing. Credential issuer will always be DID.
func UpdateSignatureTypeContext ¶
func UpdateSignatureTypeContext(credential *verifiable.Credential, signatureType vcsverifiable.SignatureType)
UpdateSignatureTypeContext updates context for JSONWebSignature2020.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.