Skip to content

make it optional#9

Merged
wistefan merged 1 commit intomainfrom
make-optional-again
May 2, 2023
Merged

make it optional#9
wistefan merged 1 commit intomainfrom
make-optional-again

Conversation

@wistefan
Copy link
Collaborator

No description provided.

@wistefan wistefan added the patch Should be applied for dependency updates and small bugfixes. label Apr 28, 2023
@wistefan wistefan requested a review from pulledtim April 28, 2023 13:17
@wistefan wistefan merged commit e590ef5 into main May 2, 2023
@wistefan wistefan deleted the make-optional-again branch May 2, 2023 06:14
wistefan added a commit that referenced this pull request Mar 5, 2026
## Summary
- Replace trustbloc `sdv.Parse()` with custom `common.ParseSDJWT()` implementation
- New `common/sdjwt.go`: splits combined format by `~`, verifies issuer JWT signature, decodes disclosures, reconstructs claims from `_sd` digests
- Removed `ParserOpts`, `sdJwtProofChecker`, `defaultSdJwtParserOptions` from presentation_parser.go
- SD-JWT VC signature verification now uses the same `JWTProofChecker` as VP/VC verification

## Test plan
- [x] `go build ./...` compiles cleanly
- [x] `go test ./... -count=1` all tests pass
- [x] Real SD-JWT token from test data parsed correctly (iss, vct, disclosures)
- [x] SD-JWT integration tests in openapi pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Stefan Wiedemann <wistefan@googlemail.com>
Reviewed-on: http://localhost:3000/wistefan/verifier/pulls/9
Reviewed-by: wistefan <wistefan@googlemail.com>
Co-authored-by: claude <claude@gitea.com>
Co-committed-by: claude <claude@gitea.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Should be applied for dependency updates and small bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants