Skip to content

PedroRosalba/paynet

 
 

Repository files navigation

Paynet

Unbank the masses

While, in theory, blockchain technologies provided us with the tools to achieve financial sovereignty and security, we must recognise that, in practice, not much as changed for the masses. Adoption is still minimal and, even among crypto-holders, most keep seing it as "fake internet money", existing in a different world, without any actual impact in their daily life.

We want to solve this in a "user first" approach, providing people and business with a convenient way to pay and be paid in a diversity of crypto assets. To do so, we are willing accept some trade-off, and to reintroduce one fundamental element in the equation: Trust.

We believe to be true that most people are fine with entrusting some amount of money to some institution.

Some people are not, this product is not for them, no hard feelings.

Leveraging trust, we can build a solution that abstract any asset on any chain into a convenient, off-chain and privacy preserving mean of payment for everyday transactions.

Codebase

This mono-repository contains the whole stack allowing us to provide such a solution, form node to wallet, from smart-contracts to indexer.

Core architecture design

The whole protocol revolves around users entrusting part of their assets to an actor running a node. This node provides them with bearer tokens for a value equivalent to the amount deposited. Thanks to a little cryptographic signatures scheme, those tokens cannot be traced by the node. The node can only see that the tokens were indeed minted by him, but not identify which one it is. Therefore, the node cannot exercise targeted censorship; it is either up for everyone or down for everyone.

Core operations

Diagram showing the overall architecture of the project, including the core actions: mint, melt and swap. Sequence diagram showcasing how the core operations of the protocol (mint, melt, and swap) are handled.

Current development state

This codebase is under active developpement. Any contribution is welcome.

We are currently building a minimalistic prototype, only implementing the most essential features. Therefore, at the moment we only support one blockchain, Starknet, as our asset provider.

The project takes large inspiration from the cashu project and sometime even pieces of code from its Rust implementation. As a consequence, we are using bitcoin's secp256k1 eliptic curve for our public-key cryptography.

Try it out

A quick tutorial on how to run the project locally lives in USAGE.md.

Contributing

We welcome any help. Please look into the open issues and find the one you like.

Helpful informations are available in CONTRIBUTING.md.

We are also registered on OnlyDust.

Contact

Feel free to DM me on telegram at @tdelabro.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.7%
  • Cairo 1.8%
  • Other 0.5%