Commit 4b1ca37
authored
run proto scripts (#460)
This pull request updates the DKIM module's API to simplify the query
interface and remove redundant proof verification methods. The main
changes are the removal of the `ProofVerify` gRPC method and its
associated code, as well as some additions and clarifications to the
query request structures.
### API interface simplification
* Removed the `ProofVerify` method from the `Query` gRPC service,
including its method definition, handler, and references in both the
client and server interfaces (`query_grpc.pb.go`).
[[1]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L25)
[[2]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L41-L42)
[[3]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L85-L94)
[[4]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L117-L118)
[[5]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L140-L142)
[[6]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L221-L238)
[[7]](diffhunk://#diff-4026f99eb9143f16316b007f8eebcfc781e2972140443f5cecbb3ddf85135868L276-L279)
### Request structure improvements
* Added detailed fields to the `QueryAuthenticateRequest` struct,
including `tx_bytes`, `email_hash`, `proof`, `public_inputs`, and
`allowed_email_hosts` to support more comprehensive zk proof
verification requests (`query.pulsar.go`).
### Genesis state documentation
* Added a comment clarifying that `dkim_pubkeys` in the `GenesisState`
struct stores the list of active DKIM public keys (`genesis.pulsar.go`).
### Protobuf descriptor updates
* Updated the protobuf descriptors and method indices to reflect the
removal of `ProofVerify` and the changes to the available methods
(`query.pulsar.go`).
[[1]](diffhunk://#diff-74c26fef3b388f3f319d764cba5cd2dd34ba615cdf4d143ef0c0d8bb426cad21L4584-R4590)
[[2]](diffhunk://#diff-74c26fef3b388f3f319d764cba5cd2dd34ba615cdf4d143ef0c0d8bb426cad21L4671-R4675)
These changes streamline the DKIM query API, removing unnecessary
duplication and making the authentication request structure more
explicit and robust.1 parent ed3b031 commit 4b1ca37
3 files changed
Lines changed: 38 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments