Giter Club home page Giter Club logo

Comments (3)

aspect avatar aspect commented on August 23, 2024

Hi KaffinPx,

We are well aware of this issue. To address this, at the design stage, we have made sure that the internal kaspa RPC infrastructure is RPC protocol/transport agnostic. The RPC layer within kaspa is implemented using Rust Traits allowing us to "plug-in" any RPC implementation/library. For the purpose of backward compatibility, gRPC is the first implementation being done. JSON-RPC is also available via Serde although, at the moment I don't think the transport endpoint is implemented.

Anyone will be able to plug in any RPC library if needed. On my end, for the purposes of PWA (kaspanet web wallet) and KDX. I have been working on a binary WebSocket-based RPC that will interface directly with the WASM layer, then expose WASM functions to JS, effectively allowing anyone using JS to specify a WebSocket endpoint and then use JS functions without worrying about RPC. Alternatively if using Rust, it will be possible to use Rust functions and if anyone wants to use actual protocols, gRPC and JSON-RPC will be available "out of the box".

from rusty-kaspa.

KaffinPX avatar KaffinPX commented on August 23, 2024

Anyway if we had a gRPC like Kaspawalletd would be much better

from rusty-kaspa.

aspect avatar aspect commented on August 23, 2024

Due to backward compatibility requirements with Golang implementation, gRPC won't be changed to remove streams in the near future. We are using wRPC for web connectivity. Closing this issue for now. Ping us on Discord if there are any questions.

from rusty-kaspa.

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.