Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDJWTSignatureTypes = []string{ EdDSA.Name(), ES256K.Name(), ES256.Name(), ES384.Name(), PS256.Name(), }
SDJWTSignatureTypes stores the list of SD-JWT supported SignatureType by VCS nolint: gochecknoglobals
Functions ¶
func ValidateFormat ¶
func ValidateSignatureKeyType ¶
func ValidateSignatureKeyType(signatureType SignatureType, keyType string) (kms.KeyType, error)
Types ¶
type OIDCFormat ¶
type OIDCFormat string
const ( JwtVCJsonLD OIDCFormat = "jwt_vc_json-ld" JwtVCJson OIDCFormat = "jwt_vc_json" LdpVC OIDCFormat = "ldp_vc" )
type SignatureType ¶
type SignatureType string
SignatureType type of signature used to sign vc.
const ( EdDSA SignatureType = "EdDSA" ES256K SignatureType = "ES256K" ES256 SignatureType = "ES256" ES384 SignatureType = "ES384" PS256 SignatureType = "PS256" Ed25519Signature2018 SignatureType = "Ed25519Signature2018" Ed25519Signature2020 SignatureType = "Ed25519Signature2020" EcdsaSecp256k1Signature2019 SignatureType = "EcdsaSecp256k1Signature2019" BbsBlsSignature2020 SignatureType = "BbsBlsSignature2020" JSONWebSignature2020 SignatureType = "JsonWebSignature2020" )
func GetSignatureTypeByName ¶
func GetSignatureTypeByName(signatureType string) (SignatureType, error)
func GetSignatureTypesByKeyTypeFormat ¶ added in v1.1.0
func GetSignatureTypesByKeyTypeFormat(keyType kms.KeyType, vcFormat Format) []SignatureType
Click to show internal directories.
Click to hide internal directories.