Skip to content

Commit

Permalink
remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Nov 17, 2023
1 parent 342a182 commit 07d6da6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions vcr/pe/presentation_submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,3 @@ func (b *PresentationSubmissionBuilder) Build(format string) (PresentationSubmis

return presentationSubmission, nonEmptySignInstructions, nil
}

// isHolder returns true if the wallet of the specified subject contains the given VC.
func (b *PresentationSubmissionBuilder) isHolder(subjectID did.DID, credential vc.VerifiableCredential) bool {
for i, holder := range b.holders {
if holder == subjectID {
// find VC in slice
for _, curr := range b.wallets[i] {
if curr.Raw() == credential.Raw() {
return true
}
}
}
}
return false
}

0 comments on commit 07d6da6

Please sign in to comment.