Skip to content

Expose block encoding parameters in verifier specs - #159

Open
mysteryon88 wants to merge 4 commits into
google:mainfrom
mysteryon88-forks:main
Open

Expose block encoding parameters in verifier specs#159
mysteryon88 wants to merge 4 commits into
google:mainfrom
mysteryon88-forks:main

Conversation

@mysteryon88

Copy link
Copy Markdown

Summary

  • add block_enc_hash and block_enc_sig to the verifier's ZKSpec JSON response
  • populate both values directly from the existing C kZkSpecs source of truth
  • add regression coverage for the serialized JSON fields

Why

The Longfellow ZK system specification documents block_enc_hash and
block_enc_sig as required parameters for ZkSystemSpec and OpenID4VP
zk_system_type.

The reference verifier's /specs endpoint currently omits these fields,
even though their values are already available in kZkSpecs. As a result,
relying parties cannot construct a complete ZK system specification from
the endpoint and would have to hardcode the parameters or parse the C++
source.

This change makes /specs consistent with the documented format and keeps
kZkSpecs as the single source of truth. The response change is additive.

This is a follow-up to #95, which documented the required parameters.

Include block_enc_hash and block_enc_sig from kZkSpecs in the JSON
response returned by the verifier's /specs endpoint.

Add regression coverage for both required fields.
@google-cla

google-cla Bot commented Jul 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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