Skip to content
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

Create an Ocean-Specific Implementation of libp2p #1

Open
bogdanfazakas opened this issue Nov 20, 2024 · 3 comments
Open

Create an Ocean-Specific Implementation of libp2p #1

bogdanfazakas opened this issue Nov 20, 2024 · 3 comments

Comments

@bogdanfazakas
Copy link
Member

bogdanfazakas commented Nov 20, 2024

Develop an Ocean-specific implementation of the libp2p library, tailored to meet the needs of the Ocean ecosystem:

  1. Exported Objects:
    • The module should export two distinct objects:
    • Server Object: Designed for ocean nodes.
    • Client Object: Intended for workers and distributors in the nodes monitoring service and for the Ocean.js SDK.
  2. Initialisation and Configuration:
    • Each object must accept a configuration parameter at initialisation.
    • Configuration must differ between the server and client implementations, including but not limited to:
    • Server-Specific Config: Private keys, timeout settings, and additional configurations required for running as an ocean node.
    • Client-Specific Config: Lightweight configuration for connecting to ocean nodes or performing worker/distributor tasks.
  3. Use Cases:
    • The Server Object will serve as the backbone for ocean nodes, providing network capabilities for communication and data exchange.
    • The Client Object will facilitate:
    • Operations for workers and distributors in the nodes monitoring service.
    • Interactions with ocean nodes via the Ocean.js SDK.
@jamiehewitt15
Copy link
Member

I thought we were going to do this in ocean.js? Or is the plan now to have a separate library for this?

@bogdanfazakas
Copy link
Member Author

No, we'll have a separate to deal with p2p and that will be imported in ocean.js as well, we'll be using the client class for that use case here

@jamiehewitt15
Copy link
Member

No, we'll have a separate to deal with p2p and that will be imported in ocean.js as well, we'll be using the client class for that use case here

Ok cool, makes sense

@mihaisc mihaisc added this to the Ocean Nodes C2D.2 free jobs milestone Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants