Documentation ¶
Index ¶
- func DocumentLoader(t *testing.T, extraContexts ...ldcontext.Document) *ld.DocumentLoader
- func SignedClaimsCWTWithExistingPrivateKey(t *testing.T, verMethodDIDKeyID string, signer api.FixedKeySigner, ...) string
- func SignedClaimsJWTWithExistingPrivateKey(t *testing.T, verMethodDIDKeyID string, signer api.FixedKeySigner, ...) string
- func SignedVC(t *testing.T, vcBytes []byte, kt kmskeytypes.KeyType, ...) (*verifiable.Credential, vdrapi.Registry)
- func SignedVPWithExistingPrivateKey(t *testing.T, presentation *verifiable.Presentation, format vcs.Format, ...) *verifiable.Presentation
- type LDPOpt
- type SignedClaimsJWTResult
- type SignedPresentationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocumentLoader ¶
DocumentLoader returns a document loader with preloaded test contexts.
func SignedClaimsCWTWithExistingPrivateKey ¶ added in v1.11.0
func SignedClaimsJWTWithExistingPrivateKey ¶ added in v1.1.0
func SignedVC ¶
func SignedVC( t *testing.T, vcBytes []byte, kt kmskeytypes.KeyType, sr verifiable.SignatureRepresentation, sf vcsverifiable.Format, loader ld.DocumentLoader, purpose string, isSDJWT bool, ) (*verifiable.Credential, vdrapi.Registry)
SignedVC returns signed VC represented by vcBytes.
func SignedVPWithExistingPrivateKey ¶ added in v1.1.0
func SignedVPWithExistingPrivateKey( t *testing.T, presentation *verifiable.Presentation, format vcs.Format, verMethodDIDKeyID string, keyType kms.KeyType, signer api.FixedKeySigner, opts ...LDPOpt, ) *verifiable.Presentation
SignedVPWithExistingPrivateKey returns signed presentation using kh.
Types ¶
type LDPOpt ¶ added in v1.1.0
type LDPOpt func(ldpc *verifiable.LinkedDataProofContext)
func WithChallenge ¶ added in v1.1.0
func WithDomain ¶ added in v1.1.0
type SignedClaimsJWTResult ¶ added in v1.1.0
type SignedClaimsJWTResult struct { JWT string VDR vdrapi.Registry Signer api.FixedKeySigner VerMethodDIDKeyID string VerMethodDID string KeyType kms.KeyType }
func SignedClaimsJWT ¶ added in v1.1.0
func SignedClaimsJWT(t *testing.T, claims interface{}) *SignedClaimsJWTResult
type SignedPresentationResult ¶ added in v1.1.0
type SignedPresentationResult struct { Presentation *verifiable.Presentation VDR vdrapi.Registry Kh *jwk.JWK VerMethodDIDKeyID string }
Click to show internal directories.
Click to hide internal directories.