Skip to content

Commit

Permalink
try to add
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Dec 4, 2023
1 parent f7a9779 commit 65a0d9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tir/tokenProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

"github.com/trustbloc/did-go/doc/ld/processor"
"github.com/trustbloc/vc-go/proof/creator"
"github.com/trustbloc/vc-go/proof/jwtproofs/rs256"
"github.com/trustbloc/vc-go/proof/ldproofs/jsonwebsignature2020"
"github.com/trustbloc/vc-go/verifiable"
)
Expand Down Expand Up @@ -130,7 +131,7 @@ func (tp M2MTokenProvider) signVerifiablePresentation(authCredential *verifiable
vp.ID = "urn:uuid:" + uuid.NewString()
vp.Holder = tp.did

proofCreator := creator.New(creator.WithLDProofType(jsonwebsignature2020.New(), NewRS256Signer(tp.signingKey)))
proofCreator := creator.New(creator.WithLDProofType(jsonwebsignature2020.New(), NewRS256Signer(tp.signingKey)), creator.WithJWTAlg(rs256.New(), NewRS256Signer(tp.signingKey)))

created := tp.clock.Now()
err = vp.AddLinkedDataProof(&verifiable.LinkedDataProofContext{
Expand Down

0 comments on commit 65a0d9c

Please sign in to comment.