package
0.0.0-20241107155323-bd860cc666d1
Repository: https://github.com/alangotbithin/vc-go.git
Documentation: pkg.go.dev
# Functions
CheckHeaders checks jwt headers.
CheckProof checks that jwt have correct signature.
DecodeClaimsTo if set claims will be decoded into object pointed by decodeDestination argument.
IsJWS checks if JWT is a JWS of valid structure.
IsJWTUnsecured checks if JWT is an unsecured JWT of valid structure.
NewJoseSigned creates new signed JSON Web Token based on input claims.
NewJOSESigner wraps ProofCreator into jose signer.
NewSigned creates new signed JSON Web Token based on input claims.
NewUnsecured creates new unsecured JSON Web Token based on input claims.
Parse parses input JWT in serialized form into JSON Web Token.
ParseAndCheckProof parses input JWT in serialized form into JSON Web Token and check signature proof.
PayloadToMap transforms interface to map.
WithIgnoreClaimsMapDecoding option is for ignore decoding claims into .Payload map[string]interface.
WithJWTDetachedPayload option is for definition of JWT detached payload.
# Constants
AlgorithmNone used to indicate unsecured JWT.
TypeJWT defines JWT type.
TypeSDJWT defines SD-JWT type v5+.
# Structs
JoseSigner implement jose.proofCreator interface.
JSONWebToken defines JSON Web Token (https://tools.ietf.org/html/rfc7519).
SignParameters contains parameters of signing for jwt vc.
# Interfaces
ProofChecker used to check proof of jwt vc.
ProofCreator defines signer interface which is used to sign VC JWT.