Skip to content

Depend on the monolithic idemix v0.2.0 module - #510

Merged
bestbeforetoday merged 1 commit into
hyperledger:mainfrom
Built-by-Sign:idemix-monolithic
Jul 9, 2026
Merged

bestbeforetoday merged 1 commit into
hyperledger:mainfrom
Built-by-Sign:idemix-monolithic

Conversation

@EvanYan1024

Copy link
Copy Markdown
Contributor

Type of change

  • Improvement (improvement to code, performance, etc)

Description

fabric-ca currently depends on the split idemix layout — github.com/IBM/idemix v0.0.2-... plus the standalone github.com/IBM/idemix/bccsp/types and github.com/IBM/idemix/bccsp/schemes/weak-bb modules.

Both the split sub-modules and the monolithic github.com/IBM/idemix module export the github.com/IBM/idemix/bccsp/types import path. As a result, any module graph that pulls fabric-ca alongside a dependency that requires the monolithic idemix fails to build with an ambiguous import, e.g.:

ambiguous import: found package github.com/IBM/idemix/bccsp/types in multiple modules:
	github.com/IBM/idemix v0.1.1 (.../idemix@v0.1.1/bccsp/types)
	github.com/IBM/idemix/bccsp/types v0.0.0-20240913182345-72941a5f41cd (.../bccsp/types@...)

This blocks using the fabric-ca client library in the same build as recent fabric-token-sdk / LFDT Panurus releases, which depend on the monolithic github.com/IBM/idemix v0.1.1.

This change depends on the monolithic github.com/IBM/idemix v0.1.1 and drops the split bccsp/types and bccsp/schemes/weak-bb requirements; github.com/IBM/mathlib is bumped to v0.2.0 to match. v0.1.1 folds the sub-packages back into the single module, so the github.com/IBM/idemix/bccsp/... import paths still resolve.

Additional details

No source changes — only go.mod / go.sum and the regenerated vendor/ tree. fabric-ca compiles unchanged against idemix v0.1.1; verified locally with go build ./....

Related issues

N/A

@EvanYan1024
EvanYan1024 requested a review from a team as a code owner July 9, 2026 08:44
@bestbeforetoday

Copy link
Copy Markdown
Member

fabric-ca is an application, distributed as a binary. It is not intended to be consumed as a Go library.

Rationalising the imports is fine but it must remain exactly compatible with Fabric.

Comment thread go.mod Resolved
Comment thread go.mod Outdated
github.com/IBM/idemix v0.0.2-0.20240913182345-72941a5f41cd
github.com/IBM/idemix/bccsp/types v0.0.0-20240913182345-72941a5f41cd
github.com/IBM/mathlib v0.0.3-0.20250709075152-a138079496c3
github.com/IBM/idemix v0.1.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There looks to be a v0.2.0 release now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, will move to idemix v0.2.0.

Comment thread go.mod Outdated
github.com/IBM/idemix/bccsp/types v0.0.0-20240913182345-72941a5f41cd
github.com/IBM/mathlib v0.0.3-0.20250709075152-a138079496c3
github.com/IBM/idemix v0.1.1
github.com/IBM/mathlib v0.2.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now a v0.3.0 release, which is a dependency of github.com/IBM/idemix@v0.2.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will bump mathlib to v0.3.0 to match idemix v0.2.0.

@EvanYan1024

Copy link
Copy Markdown
Contributor Author

fabric-ca is an application, distributed as a binary. It is not intended to be consumed as a Go library.

Rationalising the imports is fine but it must remain exactly compatible with Fabric.

Thanks. For context, we don't run the fabric-ca binary — we embed the client library (lib.Client + api) for programmatic per-institution enroll/register, which the CLI can't cover.

Fully agree it must stay in lockstep with Fabric. The trigger here: fabric-token-sdk (LFDT Panurus) and fabric-smart-client moved to the monolithic github.com/IBM/idemix, which can't coexist with fabric-ca's split bccsp/types in one build (ambiguous import). Single-module is also the current idemix direction — v0.1.0/v0.1.1 and today's v0.2.0 are all single-module, while Fabric is still on the 2024 split commit. So fabric-ca will need this realignment whenever Fabric refreshes idemix; this just does it early.

Require github.com/IBM/idemix v0.2.0 (monolithic) instead of the split
bccsp/types and bccsp/schemes/weak-bb sub-modules, and bump mathlib to
v0.3.0 (a dependency of idemix v0.2.0).

Both the split sub-modules and the monolithic module export the
github.com/IBM/idemix/bccsp/types import path, so fabric-ca cannot build
in any module graph that also pulls the monolithic idemix (ambiguous
import). The consolidated module folds the sub-packages back into a
single module; fabric-ca builds unchanged against it.

Signed-off-by: Evan <evanyan@sign.global>
@EvanYan1024 EvanYan1024 changed the title Depend on the monolithic idemix v0.1.1 module Depend on the monolithic idemix v0.2.0 module Jul 9, 2026
@mergify

mergify Bot commented Jul 9, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@bestbeforetoday
bestbeforetoday merged commit 850b22d into hyperledger:main Jul 9, 2026
6 checks passed
@EvanYan1024
EvanYan1024 deleted the idemix-monolithic branch July 10, 2026 01:26
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.

2 participants