Skip to content

CPS-0019? | Light Client Protocols #942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

cleanerm5
Copy link
Contributor

@cleanerm5 cleanerm5 commented Nov 21, 2024

Hi,

There are a few activities ongoing that require the development of so called light client protocols for Cardano. The ones that came to my awareness are:

There are various ways how to implement light clients on Cardano (whereas because of the core protocol not providing so called state proofs out of the box, there is no canonical light client design available for Cardano at the moment). In that sense, I wanted to create a common point of reference and problem description with this CPS to which concrete light client designs can refer to when they are documented as a CIP.

At least for the IBC implementation we plan to document the Mithril based light client as a CIP and the same would make sense for the respective light client protocol to be developed for a Bitcoin-Cardano bridge (in case the bridge follows a light client based security model), because both designs can be used for other use cases as well.

Any feedback is highly appreciated.

Kind regards


(rendered latest version)

@cleanerm5 cleanerm5 marked this pull request as ready for review November 21, 2024 16:01
@rphair rphair changed the title CPS on Light Client Protocols CPS-???? | Light Client Protocols Dec 3, 2024
Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm marking Triage to begin discussion of this at the next CIP meeting (https://hackmd.io/@cip-editors/102) if not earlier in this thread.

This will be an introduction of the CPS, rather than a full review, but I would also plan to discuss the scope enough to see if a category of Network rather than Tools would be appropriate. @cleanerm5 you have obviously put a lot of thought into applications so I would hope you can come to this meeting in a week's time to answer this question first.

@rphair rphair added the State: Triage Applied to new PR afer editor cleanup on GitHub, pending CIP meeting introduction. label Dec 3, 2024
@rphair rphair changed the title CPS-???? | Light Client Protocols CPS-0142? | Light Client Protocols Dec 10, 2024
@rphair rphair added Category: Tools Proposals belonging to the 'Tools' category. State: Confirmed Candiate with CIP number (new PR) or update under review. and removed State: Triage Applied to new PR afer editor cleanup on GitHub, pending CIP meeting introduction. labels Dec 10, 2024
Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed as candidate in CIP meeting today: pending a title revision that reflects not a standard / framework for "light client protocols" but rather a means of incorporating these into the main protocol with proofs (as @colll78 pointed out).

Ordinarily we would wait for a title accurately representing the CIP scope, but given the high profile concurrent work that relates to this CIP we decided to put the number through immediately.

Please @cleanerm5 rename the directory to CPS-0019 and re-link your original comment to the new pathname of the latest proposal in your branch. 🎉

@rphair rphair changed the title CPS-0142? | Light Client Protocols CPS-0019? | Light Client Protocols Jan 11, 2025
Copy link

@EzequielPostan EzequielPostan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a nice reading, thank you for the document.
I may add a comment/question. Is it actually the role of light clients to improve the finality properties of Cardano (or any underlying chain)? I can understand the challenge of finality for application development, but I wanted to ask if the protocols to generate state proofs (as defined in the document) should be mixed with underlying consensus finality management

@polinavino
Copy link

polinavino commented Jan 16, 2025

FYI - There is a "Light Client Service" section in the following CIP about nested transactions

The idea is that batching transactions in a specific way, called Nested Transactions (plus some extra versatility for script use), allows users to engage in an LC protocol which is NOT about the LC querying a service provide for blockchain data, but instead, an LC asks the SP to help them build a transaction that satisfies some properties

#862

Copy link
Collaborator

@rphair rphair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cleanerm5 this was hanging in limbo for a period from the unresolved query in #942 (comment) ... I'm cleaning through similarly "waiting for response" candidates that we can still promote and I think yours was actually ready long ago.

@Ryun1 @Crypto2099 @perturbing it's especially important that we have a proper CPS container at least for Mithril & all others enumerated here which may have CIPs for them. Though I'm not an expert reviewer I can find no fault with this document nor how it paves the way for development in this field... so marking Last Check for next CIP meeting in 2 days' time (https://hackmd.io/@cip-editors/113) to merge unless some fault is identified.

Note

@cleanerm5 @polinavino if you can consider at the last minute including candidate #862 as suggested in #942 (comment) then please contribute an editorial suggestion... otherwise we will leave it to a later PR update if relevant.

@rphair rphair added State: Last Check Review favourable with disputes resolved; staged for merging. and removed State: Confirmed Candiate with CIP number (new PR) or update under review. labels Jun 8, 2025
@rphair rphair requested review from Ryun1, Crypto2099 and perturbing June 8, 2025 23:38
@rphair
Copy link
Collaborator

rphair commented Jun 26, 2025

@cleanerm5 after feedback from yesterday's CIP meeting I'm putting this back in Confirmed status (= active review but not ready to merge) due to an expressed opinion that the technical accuracy and precision aren't currently enough to reflect the importance that Mithril will have to Cardano.

@perturbing can post specifics & in the meantime we'll watch here for developments. Any review or response from the Mithril team would also be appreciated here (not sure who to tag... maybe @cleanerm5 you could help?). All editors agreed this is a vital CPS for Cardano and will be ready to keep this document moving towards merge when possible.

@rphair rphair added State: Confirmed Candiate with CIP number (new PR) or update under review. and removed State: Last Check Review favourable with disputes resolved; staged for merging. labels Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Tools Proposals belonging to the 'Tools' category. State: Confirmed Candiate with CIP number (new PR) or update under review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants