Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regel/cardano-p2p
A package to simplify and secure p2p topology updates for Cardano node stake pool operators
https://github.com/regel/cardano-p2p
blockchain cardano
Last synced: 3 months ago
JSON representation
A package to simplify and secure p2p topology updates for Cardano node stake pool operators
- Host: GitHub
- URL: https://github.com/regel/cardano-p2p
- Owner: regel
- License: apache-2.0
- Created: 2021-08-15T16:35:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T20:35:59.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T00:24:08.942Z (7 months ago)
- Topics: blockchain, cardano
- Language: Go
- Homepage:
- Size: 116 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# About cardano-p2p
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/regel/cardano-p2p)](https://goreportcard.com/report/github.com/regel/cardano-p2p)
[![Build](https://github.com/regel/cardano-p2p/actions/workflows/build.yaml/badge.svg)](https://github.com/regel/cardano-p2p/actions/workflows/build.yaml)
[![Docker pulls](https://img.shields.io/docker/pulls/regel/cardano-p2p)](https://hub.docker.com/r/regel/cardano-p2p)
[![codecov](https://codecov.io/github/regel/cardano-p2p/coverage.svg)](https://codecov.io/gh/regel/cardano-p2p)A CLI application to simplify Cardano node topology files updates.
## Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/gh-regel#backer)]
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a
link to your website. [[Become a
sponsor](https://opencollective.com/gh-regel#sponsor)]# The Cardano Blockchain Needs A Decentralized Node Discovery Service
The Cardano blockchain does not yet have a production ready p2p feature to update topology files,
although all required information is registered in the blockchain.To find a temporary workaround, the Cardano community created a centralized API (known as CLIO1, api.clio.one) to
exchange node's IP addresses and update their topology files.The `cardano-p2p` application solves this issue and enables fully decentralized
topology file updates.## How It Works
The `cardano-p2p` application:
* Connects to [Ogmios](https://ogmios.dev/) websocket in order to get registered pool parameters found in the Cardano blockchain
* Verifies each pool metadata and sends a TCP probe to ensure their IP and port are still reachable
* Selects Cardano nodes that passed the above test in order to produce valid topology files
* Serves list of Cardano nodes randomly to ensure *fairness* and produce *reliable* Graphs topologies## Backward Compatibility
`cardano-p2p` implements an API that is backward compatible with CLIO hosted service api.clio.one
and therefore is designed to simplify the transition.