All Projects → TomAFrench → NoteStream

TomAFrench / NoteStream

Licence: LGPL-3.0 license
Private money streaming on Ethereum using AZTEC Protocol

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to NoteStream

libkeccak
[Basically feature complete] Keccak-family hashing library
Stars: ✭ 53 (+120.83%)
Mutual labels:  confidentiality
awesome-zkp-starter-pack
A curated collection of links for zero-knowledge proof cryptography used in blockchains
Stars: ✭ 63 (+162.5%)
Mutual labels:  aztec
Fabric
Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
Stars: ✭ 12,911 (+53695.83%)
Mutual labels:  confidentiality
barcoder
Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.
Stars: ✭ 76 (+216.67%)
Mutual labels:  aztec
sablier-subgraph
Subgraph for the Sablier money streaming protocol
Stars: ✭ 21 (-12.5%)
Mutual labels:  money-streaming

NoteStream is the protocol for private real-time finance on Ethereum using AZTEC Protocol.

CircleCI https://img.shields.io/badge/gitcoin%20grant-active-brightgreen Built with AZTEC Protocol License: LGPL v3


What is NoteStream? 🤷‍♂️

The simplest way to sum it up is "Sablier but with privacy (using AZTEC Protocol)".

For those of you not familiar with Sablier, this means that NoteStream is a private realtime finance platform which allows you to stream money over time using the Ethereum network.

This could be applied in many areas but one obvious usecase is that it allows a salary to be paid out every second, making payday a thing of the past. While this is possible using Sablier today, it has the unfortunate sideeffect of telling everyone exactly how much you earn as everything is public on the Ethereum blockchain. NoteStream solves this issue by making use of AZTEC Protocol to encrypt the value of your salary to keep it private while ensuring that you can always withdraw the money you have earned so far.

NoteStream was started at the 2020 ETHLondon Hackathon (under the name Quachtli) by Tom French, Moe Adham, Evgeni Shavkunov and György Tamás Klöczl. NoteStream was one of six finalists and was chosen as "Best use of AZTEC Protocol".

Notice: I learned a lot about how to build on top of Aztec Protocol while creating NoteStream. As AZTEC is still very new, there isn't a lot of documentation out there, to help with this I'm in the process of writing a blog post which explains NoteStream how operates. I'll post a link here when I'm done.

Packages 📦

NoteStream is maintained as a monorepo with multiple sub packages. Please find a comprehensive list below.

Javascript Packages

Package Version Description
@notestream/contract-artifacts npm Contract artifacts and addresses for NoteStream contracts

Solidity Packages

Package Version Description
@notestream/contracts npm AZTEC note streaming protocol contracts

Unpublished Packages

Package Description
@notestream/react-app Example dapp frontend
@notestream/subgraph Subgraph tracking NoteStream stream creations/withdrawals/cancellations
@notestream/dev-utils Dev utils to be shared across NoteStream projects and packages

Contracts 📝

Find the addresses for our smart contracts below. They have not been audited in any way so I don't recommend putting real money into them.

Ethereum Testnets

NoteStream is deployed on the Rinkeby testnet.

Name Description Address
AztecStreamer Money streaming engine 0x455cD682E2411C0cF9a8c91c4498732B8Dd5B751

Usage ⚒️

To check out and compile the smart contracts, install any dependencies and then head to each individual package as presented above. For example, these are the instructions for @notestream/contracts:

$ yarn install
$ cd packages/contracts
$ yarn compile
$ yarn deploy --network rinkeby

Contact us ✉️

I'd love to hear from anybody wanting to build on top of NoteStream or building something similar. If you have any questions or just want to show off what you've made, ping me on Twitter.

Contributing 🙋‍♀️

We use Yarn as a dependency manager and Buidler as a development environment for compiling, testing, and deploying our contracts. The contracts were written in Solidity.

Requirements

  • yarn >= 1.22.4
  • solidity 0.5.11

Pre Requisites

Make sure you are using Yarn >=1.22.4

To clone this repo and install dependencies run:

$ git clone https://github.com/TomAFrench/NoteStream.git && cd NoteStream
$ yarn install

Deploy contracts to Rinkeby

$ yarn contracts:deploy --network rinkeby

Start frontend

Start the frontend with the command

yarn react-app:start

The frontend will allow you to convert ERC20 tokens into zkTokens, send these zkTokens streamed around to other Ethereum addresses and withdraw from zkTokens back into ERC20 tokens.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].