Skip to content

refactor(mock-utils): consume relayer-sdk core entrypoint#101

Draft
gustavovalverde wants to merge 1 commit intozama-ai:mainfrom
gustavovalverde:fix/mock-utils-browser-compat
Draft

refactor(mock-utils): consume relayer-sdk core entrypoint#101
gustavovalverde wants to merge 1 commit intozama-ai:mainfrom
gustavovalverde:fix/mock-utils-browser-compat

Conversation

@gustavovalverde
Copy link

@gustavovalverde gustavovalverde commented Feb 6, 2026

Summary

  • switch mock-utils decryption EIP-712 construction to KmsEIP712 from @zama-fhe/relayer-sdk/core
  • keep mock keypair generation local via generateKeypair() (no WASM bootstrap path)
  • remove vendored KmsEIP712 copy and rely on upstream implementation

Why

mock-utils needs the EIP-712 helper surface but should avoid pulling runtime WASM/native bootstrap paths through @zama-fhe/relayer-sdk/node.

Using the new side-effect-free core entrypoint keeps the integration aligned with upstream relayer-sdk logic while avoiding vendored helper drift.

Dependency

This PR depends on relayer-sdk PR #412, which introduces @zama-fhe/relayer-sdk/core:

This branch is expected to merge after that PR is merged and released.

Validation

  • npm -C packages/mock-utils run build
  • npm -C packages/mock-utils run test

(Validation run with a local relayer-sdk checkout that includes PR #412 changes.)

@cla-bot
Copy link

cla-bot bot commented Feb 6, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

@gustavovalverde gustavovalverde force-pushed the fix/mock-utils-browser-compat branch from ed7a95d to 27a6bcd Compare February 18, 2026 17:42
@cla-bot
Copy link

cla-bot bot commented Feb 18, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

@gustavovalverde gustavovalverde force-pushed the fix/mock-utils-browser-compat branch from 27a6bcd to 84176dc Compare February 19, 2026 08:06
@cla-bot
Copy link

cla-bot bot commented Feb 19, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

@gustavovalverde gustavovalverde changed the title fix(mock-utils): use browser-safe relayer-sdk/web entrypoint fix(mock-utils): add browser field to remap relayer-sdk/node to /web for bundlers Feb 19, 2026
@gustavovalverde gustavovalverde marked this pull request as draft February 19, 2026 09:53
@gustavovalverde gustavovalverde force-pushed the fix/mock-utils-browser-compat branch from 84176dc to 9ae1933 Compare February 19, 2026 10:34
@cla-bot
Copy link

cla-bot bot commented Feb 19, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

1 similar comment
@cla-bot
Copy link

cla-bot bot commented Feb 19, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

@gustavovalverde gustavovalverde changed the title fix(mock-utils): add browser field to remap relayer-sdk/node to /web for bundlers refactor(mock-utils): consume relayer-sdk core entrypoint Feb 19, 2026
Use the side-effect-free `@zama-fhe/relayer-sdk/core` surface for KmsEIP712 in mock-utils and keep local mock keypair generation WASM-free.

This aligns mock-utils with the upstream modular relayer-sdk architecture and removes vendored helper drift.
@gustavovalverde gustavovalverde force-pushed the fix/mock-utils-browser-compat branch from cf55c67 to 6fb3ecd Compare February 19, 2026 12:08
@cla-bot
Copy link

cla-bot bot commented Feb 19, 2026

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @gustavovalverde on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

@aquint-zama
Copy link

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Feb 24, 2026
@cla-bot
Copy link

cla-bot bot commented Feb 24, 2026

The cla-bot has been summoned, and re-checked this pull request!

@gustavovalverde gustavovalverde marked this pull request as draft February 25, 2026 15:29
@gustavovalverde
Copy link
Author

I'm marking this as draft so it doesn't get mistakenly merged, considering it depends on zama-ai/relayer-sdk#412 (which has to be merged first)

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.

2 participants