project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Payroll Protocol

We make transactions both confidential and incredibly easy, ensuring that your sensitive financial data stays secure while providing a seamless, user-friendly experience.

Payroll Protocol

Created At

ETHOnline 2024

Project Description

Payroll Protocol is a confidential money distribution platform built on top of BNB , designed to provide confidentiality during the distribution of funds on-chain. By leveraging FHE cryptography and smart contracts, Payroll Protocol ensures the confidentiality, security, and efficiency of money distribution.

Payroll Protocol integrates BICONOMY AA SDK, BNB and INCO FHEVM to enhance user experience while confidentially distributing money.

INCO FHEVM provides hidden states to store encrypted addresses that hold encrypted amounts on the INCO network, ensuring that all transactions are secure and confidential. This integration guarantees that money distribution details and recipient information remain confidential. It uses modified Hyperlane infrastructure to bridge these state values from BNB to INCO and vice versa.

Key Features Encrypted USDC Distributions: Protects sensitive information with robust encryption methods. User-Friendly Interface: Simplifies the payroll process with one click, thanks to BICONOMY SDK. Stealth Hold: Users can hold stablecoins for an indefinite amount of time without revealing the amount. Underline Distribution: Users can completely hide their withdrawals by distributing the encrypted amount to different encrypted addresses on their behalf, providing an experience similar to Tornado Cash.

TFHE functions examples: mapping(eaddress => euint32) private ownerToBalance;

// Encrypt a plaintext address to eaddress
function encryptAddress(address plainAddress) public returns (eaddress) {
    return asEaddress(plainAddress);
}

  function decryptAddress(eaddress _eAddress) public view returns (address) {
    // Decrypt the encrypted address
    return TFHE.decrypt(_eAddress);
}

function encryptAmount(uint32 amount) public view returns (euint32) {
    // Decrypt the encrypted address
    return TFHE.asEuint32(amount);
}

 function decryptAmount(euint32 encryptedAmount) public view returns (uint32) {
    // Decrypt the encrypted address
    return TFHE.decrypt(encryptedAmount);
}

Acknowledgements Biconomy BNB INCO FHEVM

How it's Made

How We Built Payroll Protocol (With a Dash of Fun) So, building Payroll Protocol was kind of like assembling IKEA furniture—only with way more encryption and fewer leftover screws (hopefully). Here’s a peek at the ingredients we used to whip this thing up:

  1. The Face of the App: Frontend Next.js: This is like the engine under the hood, making the whole thing run super fast and responsive. It’s the reason the app doesn’t take ages to load. Tailwind CSS: Our trusty tool for making the interface look stylish and easy on the eyes, without having to write a ton of custom CSS. Tailwind makes us look like design pros, even on a caffeine-fueled deadline.
  2. The Brain Power: Backend Node.js: Handles all the brainy stuff, like processing transactions and making sure your payments go where they need to. It's the middleman, and honestly, it doesn’t get enough credit. Solidity: We wrote our super-smart contracts in this. These contracts are like tiny digital agreements that make sure everything works the way it should, like distributing payments confidentially and keeping everything secure.
  3. Gas-Free Experience: The Cool Perk Biconomy SDK: Usually, when you do something on the app, there’s a little fee involved. But with Biconomy, we’ve covered the cost, so users can just click a button without worrying about paying fees. It’s like getting free shipping on everything!
  4. Cross-Chain Communication: Sending Secrets Safely Hyperlane: This little beauty makes sure that encrypted data can be transferred between different networks without anyone knowing what’s in the message. It's like sending secret notes between friends in class—nobody else gets to peek.
background image mobile

Join the mailing list

Get the latest news and updates