https://github.com/masaun/private-payroll
This is a smart contract for realizing the private payroll. Utilize Aztec-protocol (UTXO model).
https://github.com/masaun/private-payroll
aztec solidity truffle
Last synced: 2 months ago
JSON representation
This is a smart contract for realizing the private payroll. Utilize Aztec-protocol (UTXO model).
- Host: GitHub
- URL: https://github.com/masaun/private-payroll
- Owner: masaun
- License: mit
- Created: 2020-06-22T00:47:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T14:42:44.000Z (about 6 years ago)
- Last Synced: 2025-02-02T10:43:20.564Z (over 1 year ago)
- Topics: aztec, solidity, truffle
- Language: JavaScript
- Homepage:
- Size: 1.19 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Private Payroll
***
## 【Introduction of Private Invoice】
- This is a smart contract for realizing the private payroll.
- Private payroll mean that sending/receiving salaries without revealing the amount in the middle of payments.
- Utilize Aztec-protocol (UTXO model) for creating private payroll.
***
## Setup
### ① Install modules
```
$ npm install
```
### ② Run ganache-cli
(Please make sure whether port number is `8545` or not)
```
$ ganache-cli
```
### ③ Compile contracts
```
$ npm run compile:local
```
### ④ Test contracts
```
$ npm run test:local
```
- Testing flow and result:
- Bob pay 25DAI for Sally as a payroll.
- Payroll amount is 25DAI.
- if Bob pays with his note worth 100 he requires 75 change.
***
## 【References】
- [Protect Privacy Hackathon]
- Maker:https://gitcoin.co/issue/makerdao/community/585/4432
- Keep:https://gitcoin.co/issue/keep-network/Protect-Privacy-Hackathon/1/4457
- [Aztec]
- [Sample repos]
- loan-dapp-starter-kit
https://github.com/AztecProtocol/loan-dapp-starter-kit
- aztec-ganache-starter-kit
https://github.com/AztecProtocol/aztec-ganache-starter-kit
- [Doc]:aztec.js
- UTXO model:https://docs.aztecprotocol.com/#/Introduction/UTXO%20model
- API methons list:https://aztecprotocol.github.io/AZTEC/
- a brief explanation: https://docs.aztecprotocol.com/#/aztec.js