Skip to content

Cache verifiers to eliminate duplicate Idemix proofs - #1410

Closed
AkramBitar wants to merge 1 commit into
mainfrom
validator-verifier-cache
Closed

Cache verifiers to eliminate duplicate Idemix proofs#1410
AkramBitar wants to merge 1 commit into
mainfrom
validator-verifier-cache

Conversation

@AkramBitar

@AkramBitar AkramBitar commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

See Proposal 1: #1403 (comment)
This fix can reduce ~3 ms of ~31ms (~9.6% improvements) of token transfer validation in the Fabric Token SDK, where the input tokens owned by the same Idemix identity.

Example:
2 input tokens (both owned by the same Idemix identity - Alice)
2 output tokens - Bob
Input[0]: Owner = Alice (identity bytes: 0xABCD...)
Input[1]: Owner = Alice (identity bytes: 0xABCD...) ← SAME bytes

@AkramBitar AkramBitar self-assigned this Mar 3, 2026
@AkramBitar
AkramBitar marked this pull request as draft March 3, 2026 12:55
@AkramBitar AkramBitar added this to the Q1/26 milestone Mar 3, 2026
@AkramBitar AkramBitar linked an issue Mar 3, 2026 that may be closed by this pull request
@AkramBitar
AkramBitar force-pushed the validator-verifier-cache branch from ab8b7ef to 4c69873 Compare March 3, 2026 13:03
@AkramBitar
AkramBitar requested review from aaadir and adecaro March 3, 2026 14:23
@AkramBitar
AkramBitar marked this pull request as ready for review March 3, 2026 14:23
@AkramBitar
AkramBitar force-pushed the validator-verifier-cache branch 4 times, most recently from a05ac81 to a430068 Compare March 3, 2026 20:06
@AkramBitar

Copy link
Copy Markdown
Contributor Author

There is a bug in the benchmark the input tokens should have different identity. Thus, in ZKP driver this could not be.
In Fab Token driver where no ZKP we can have better caching.

Will put this PR in draft until and check if we can have caching to improve FBA token driver.

@AkramBitar
AkramBitar marked this pull request as draft March 6, 2026 13:47
Signed-off-by: AkramBitar <akram@il.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimizing Identity Deserialization Performance

2 participants