Skip to content

fix: don't hardcode pubkey in pubkey_to_circom_format#5

Merged
nanaknihal merged 1 commit into
mainfrom
fix/pubkey-not-hardcoded
Mar 19, 2026
Merged

fix: don't hardcode pubkey in pubkey_to_circom_format#5
nanaknihal merged 1 commit into
mainfrom
fix/pubkey-not-hardcoded

Conversation

@nanaknihal

Copy link
Copy Markdown
Collaborator

Summary

  • Rename network_pubkey_for_circom()pubkey_to_circom_format(encoded_pubkey_hex) so callers pass the encoded pubkey hex rather than relying on the hardcoded production key
  • This lets the SDK work with testnet, staging, and production keys
  • Bump version to 0.3.4

JS usage

// Pass the hex-encoded pubkey from finalized_group_public_keys
const pubkey = JSON.parse(wasm.pubkey_to_circom_format(encodedPubkeyHex))

🤖 Generated with Claude Code

Rename network_pubkey_for_circom → pubkey_to_circom_format and accept
the encoded pubkey hex as input so the SDK works with any environment
(testnet, staging, production).

Bump version to 0.3.4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nanaknihal nanaknihal merged commit a359381 into main Mar 19, 2026
2 checks passed
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.

1 participant