Skip to content

Feat/disclosure ecdh babyjubjub#12

Merged
nol4lej merged 5 commits into
mainfrom
feat/disclosure-ecdh-babyjubjub
May 11, 2026
Merged

Feat/disclosure ecdh babyjubjub#12
nol4lej merged 5 commits into
mainfrom
feat/disclosure-ecdh-babyjubjub

Conversation

@nol4lej
Copy link
Copy Markdown
Member

@nol4lej nol4lej commented May 11, 2026

  • Replace revealed_value plaintext with ECDH-encrypted outputs (epk_x/y, enc_value, enc_asset_id, enc_owner_hash)
  • Add auditor BJJ public key as public input (auditor_pk_x, auditor_pk_y)
  • Keystream: k_i = Poseidon(shared.x, shared.y, i); shared = r·pk_A
  • Owner hash: Poseidon(owner_pubkey) instead of raw pubkey in ciphertext
  • 9,411 constraints (7,557 NL + 1,854 L), within pot16 limit
  • Rewrite test/disclosure.test.ts with 7 test sections for new ECDH interface
  • Rewrite docs/circuits/disclosure.md with decryption guide and usage examples
  • Update config/circuits.config.json with real compiled values for all 3 circuits
  • Bump version 0.7.0 → 0.8.0

nol4lej added 5 commits April 21, 2026 15:21
…Jubjub encryption

- Replace revealed_value plaintext with ECDH-encrypted outputs (epk_x/y, enc_value, enc_asset_id, enc_owner_hash)
- Add auditor BJJ public key as public input (auditor_pk_x, auditor_pk_y)
- Keystream: k_i = Poseidon(shared.x, shared.y, i); shared = r·pk_A
- Owner hash: Poseidon(owner_pubkey) instead of raw pubkey in ciphertext
- 9,411 constraints (7,557 NL + 1,854 L), within pot16 limit
- Rewrite test/disclosure.test.ts with 7 test sections for new ECDH interface
- Rewrite docs/circuits/disclosure.md with decryption guide and usage examples
- Update config/circuits.config.json with real compiled values for all 3 circuits
- Bump version 0.7.0 → 0.8.0
@nol4lej nol4lej merged commit e150cf6 into main May 11, 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