Skip to content

feat(connector-fabric): implement CertDatastore.has() and CertDatastore.delete() methods#4479

Open
abhayrajjais01 wants to merge 2 commits into
hyperledger-cacti:mainfrom
abhayrajjais01:feat/connector-fabric-cert-datastore-methods
Open

feat(connector-fabric): implement CertDatastore.has() and CertDatastore.delete() methods#4479
abhayrajjais01 wants to merge 2 commits into
hyperledger-cacti:mainfrom
abhayrajjais01:feat/connector-fabric-cert-datastore-methods

Conversation

@abhayrajjais01

Copy link
Copy Markdown
Contributor

Summary

  • Implemented CertDatastore.has() and CertDatastore.delete() methods in the Fabric connector datastore.
  • Resolves unimplemented TODO stubs in CertDatastore to allow checking and deleting certificates in keychains.

Changes

File Fix
packages/cactus-plugin-ledger-connector-fabric/src/main/typescript/identity/internal/cert-datastore.ts Implemented has() and delete() stubs by looking up the keychain via PluginRegistry and delegating the operations.
packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/unit/cert-datastore.test.ts Created new unit tests verifying the correctness of get(), put(), has(), and delete() methods.

Pull Request Requirements

  • Rebased onto upstream/main and squashed into single commit
  • Signed-off-by present (DCO, human only)
  • Conventional Commits format
  • Assisted-by tag (if AI was used)

@abhayrajjais01 abhayrajjais01 force-pushed the feat/connector-fabric-cert-datastore-methods branch from b59f3e3 to c959104 Compare July 1, 2026 07:15
@abhayrajjais01 abhayrajjais01 force-pushed the feat/connector-fabric-cert-datastore-methods branch 3 times, most recently from 70e660f to d505ab2 Compare July 1, 2026 07:24
@abhayrajjais01 abhayrajjais01 force-pushed the feat/connector-fabric-cert-datastore-methods branch from d505ab2 to d3023dc Compare July 2, 2026 10:31
…re.delete() methods

Implement the two remaining TODO stubs in CertDatastore by
delegating has() and delete() to the keychain instance found
via PluginRegistry, matching the existing get/put pattern.

Add unit tests with a stateful Map-backed mock keychain that
verifies keys are actually stored, queried, and removed.

Signed-off-by: abhayraj jaiswal <abhayraj916146@gmail.com>
@abhayrajjais01 abhayrajjais01 force-pushed the feat/connector-fabric-cert-datastore-methods branch 2 times, most recently from adeb14b to 4463f1e Compare July 2, 2026 10:39
@abhayrajjais01 abhayrajjais01 requested a review from RafaelAPB July 2, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants