Giter Site home page Giter Site logo

poly-rpc-prototype's Introduction

Poly RPC Prototype

Essentially a proof of concept of a multi-protocol RPC sub-system for rusty-kaspa.

This demo features:

  • Trait RpcApi (initial work of Aspectron) exposing a protocol-agnostic API
  • rpc-core RpcApi server responsible for fetching data from consensus
  • rpc-grpc RpcApi service and client implementing (partially) the protowire RPC from kaspad
  • Notification system with following pipeline: consensus -> rpc-core server -> rpc-grpc service -> rpc-grpc client -> client code

Limitations

The gRPC implementation at this stage should be considered essentially a proof of concept. It is limited to 2 queries: get_block and get_info.

The same is true of the notification system that only implements BlockAdded.

The whole rpc sub-system is not actually connected to consensus for now, neither for queries nor for notifications.

The client code requires an actual go kaspa node in order to demonstrate inter-operability and backwards compatibility.

Playing the demo

To run the prototype:

  • Open 2 terminals and run respectively following commands:

    1. cargo run --bin server
    2. cargo run --bin client -- -a http://<kaspad_ip>:<rpc_port> (ie. -a http://192.168.1.233:16110)

poly-rpc-prototype's People

Contributors

tiram88 avatar

Stargazers

Ben avatar

Watchers

 avatar

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.