Skip to content

fix container#2

Merged
wistefan merged 1 commit intomainfrom
init
Feb 2, 2023
Merged

fix container#2
wistefan merged 1 commit intomainfrom
init

Conversation

@wistefan
Copy link
Collaborator

@wistefan wistefan commented Feb 1, 2023

No description provided.

fix container
@wistefan wistefan added the patch Should be applied for dependency updates and small bugfixes. label Feb 1, 2023
@wistefan wistefan merged commit 6015a52 into main Feb 2, 2023
wistefan added a commit that referenced this pull request Mar 5, 2026
## Summary

Add project-local types in `common/credential.go` that mirror the subset of trustbloc `verifiable` types used by the codebase. These will replace `trustbloc/vc-go/verifiable` in subsequent steps.

### Types added
- `Issuer`, `Subject`, `CustomFields`, `JSONObject`, `CredentialContents`
- `Credential` with `Contents()`, `ToRawJSON()`, `MarshalJSON()`
- `Presentation` with `Holder`, `ID`, `Credentials()`, `AddCredentials()`, `MarshalJSON()`
- `CreateCredential()` and `NewPresentation()` constructors
- `WithCredentials()` functional option

No production code changes — only new types and 11 unit tests.

## Test plan
- [x] `go test ./common/... -v` — 11 tests pass
- [x] `go build ./...` — compiles
- [x] `go test ./... -timeout 120s` — full suite passes

🤖 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/2
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.

1 participant