Git Product home page Git Product logo

Comments (2)

tnull avatar tnull commented on August 18, 2024

After integration with lightning-liquidity, I believe the user will want a simple LSPS client to check the integration is well. The clients are public, but they can not really in used by any user because they are sealed.

For example, we have a public struct LSPS2ClientHandler, but the fields inside the struct are private and the new function is private (only public in the crate). That is, the EventQueue is private but it is required by LSPS2ClientHandler.

Yes, constructors are (currently) intentionally hidden as LDK-based implementations will always need the CustomMessageHandler implemented by LiquidityManager, which currently is the main object of this library. The user might then access the sub-protocol handlers, e.g., via the the lsps2_client_handler accessor.

Note that we're still in the middle of further modularizing and improving the API (cf. #69), and that the main reason for the message handler objects being individually exposed is that we intend to make them reusable even by non-LDK implementations, which is however not supported as of now.

from lightning-liquidity.

tnull avatar tnull commented on August 18, 2024

Closing this as resolved, even though we might want to improve the API in the future.

from lightning-liquidity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.