Enhance light client verification functions for standalone use #1266
Labels
O: decoupling
Objective: aims to separate concerns and cause to independent, reusable components
O: usability
Objective: aims to enhance user experience (UX) and streamline product usability
Description
Currently, the verification functions in ibc-rs such as
verify_header
andverify_misbehaviour
require a validation context interface to be provided. However, many of the interface functions within the context are not actually used in these verification functions.For example, in the
verify_header
function, it would create a better user experience to allow the user to providehost_timestamp
andtrusted_consensus_state
directly rather than the entire context.Use case
I am trying to use ibc-rs's
07-tendermint
with Succinct's sp1 to create a POC ZK IBC light client for use in Solidity. In this context, it makes sense to avoid maintaining a full light client context and state. This issue is not a blocker but could significantly improve the UX.Note
I acknowledge that I might not have the full context of the current implementation and usage patterns. If this functionality is already possible or if there are reasons for the current design that I might have missed, I would appreciate any guidance or feedback on this suggestion.
The text was updated successfully, but these errors were encountered: