HFIPay: Privacy-Preserving, Cross-Chain Cryptocurrency Payments to Human-Friendly Identifiers
HFIPay is a privacy-preserving, non-custodial cross-chain payment protocol that enables transfers to human-friendly identifiers by combining off-chain relay resolution with zero-knowledge proofs to ensure sender-verifiable binding and recipient anonymity without exposing transaction histories.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you want to send a gift to a friend, but instead of giving them a physical address, you just give them their email address. In the world of traditional banking, this is easy: you type "alice@email.com," and the bank knows exactly where to send the money.
But in the world of cryptocurrency, it's currently a nightmare. You have to copy a long, scary string of letters and numbers (like 0x4f3...a9b), make sure you picked the right network, and pay a fee just to send it. If you get it wrong, the money is gone forever.
HFIPay is a new system designed to fix this. It lets you send crypto to an email or phone number just like a bank transfer, but with a superpower: it keeps your financial life completely private.
Here is how it works, explained through a simple story.
The Problem: The "Glass House"
Right now, if you send crypto to a friend using a standard method, you are essentially writing their name on a glass house.
- The Naïve Way: If you send money to
alice@email.com, the system might turn that email into a public address. Anyone who knows Alice's email can look at the blockchain, see her address, and instantly know: "Oh, Alice has 50 Bitcoin, she bought a car last Tuesday, and she trades with Bob." - The Risk: This is dangerous. If a hacker knows your email, they can stalk your entire financial history.
The Solution: The "Secret Agent" System (HFIPay)
HFIPay introduces a middleman called a Relay (think of them as a highly trained, invisible courier service) and uses some magic math (Zero-Knowledge Proofs) to solve the privacy problem.
Here is the step-by-step process using a "Secret Package" analogy:
1. The Request (You)
You want to send $100 to your friend, Alice, using her email alice@example.com. You don't need to know her crypto address. You just tell the Relay: "Send $100 to Alice."
2. The Relay's Magic Trick (The Blinding)
The Relay knows Alice's secret crypto address, but it doesn't tell you. Instead, it does something clever:
- It creates a unique, random box (called an Intent) for this specific transaction. Let's call it "Box #999".
- It puts a sealed, opaque sticker on the box. This sticker says, "This box belongs to the person who owns the secret key for Alice's email," but the sticker itself reveals nothing about who Alice is.
- The Relay puts this "Box #999" and the sticker on the public blockchain.
- Crucial Point: To the rest of the world, "Box #999" looks like random noise. No one can tell it belongs to Alice. Even if they know Alice's email, they can't find her box.
3. The Safety Check (The Verified Quote)
Before you send your money, the Relay gives you a receipt (a "Quote").
- In the "Verified" mode, this receipt is a mathematical proof. It proves: "I promise that Box #999 is definitely for Alice, and I haven't swapped her for a fake person."
- You check this receipt. If it looks good, you send your $100 into Box #999.
- The Relay cannot steal the money. The math proves that only the person who owns the secret key for Alice's email can open this box later.
4. The Claim (Alice Opens the Box)
Alice gets a notification (via email) that a box is waiting for her. She doesn't need to know the box number; her app handles it.
- Alice uses her phone to generate a Zero-Knowledge Proof. Think of this as a magic spell that says: "I am the owner of the secret key for Alice's email, and I prove that I can open Box #999."
- She shows this spell to the blockchain.
- The blockchain checks the spell. It sees: "Yes, this spell matches the sealed sticker on Box #999."
- The blockchain releases the $100 to Alice's wallet.
The Magic: Alice proved she owns the box without ever revealing her email address or her secret key to the public blockchain.
Why is this a big deal?
- No More "Glass Houses": Before Alice claims the money, no one can link "Box #999" to Alice's email. Even if a hacker knows her email, they can't find her transactions.
- No More "Address Copying": You just type an email. No more
0x...strings. - Cross-Chain Magic: The paper mentions this works across different blockchains (like sending Bitcoin to an Ethereum wallet). The Relay handles the complex switching, but the privacy rules stay the same.
- The Relay Can't Steal: In the old days, if you used a "Send to Email" service, they held your money and could run away with it. In HFIPay, the Relay is just a messenger. Once the box is sealed on the blockchain, only Alice can open it. The Relay cannot redirect the funds to themselves.
The "Trust" Balance
The paper distinguishes between two ways to use this:
- Basic Mode: You trust the Relay to tell the truth about who Alice is.
- Verified Mode: The Relay gives you a mathematical receipt that proves they aren't lying. You don't have to trust them; you just have to trust the math.
Summary
HFIPay is like sending a letter via a secure, anonymous courier.
- Old Way: You write the recipient's name on the outside of the envelope. Everyone sees it.
- HFIPay: You give the courier the name. The courier puts the letter in a locked, unmarked box and puts it on a public shelf. The box has a unique serial number.
- Only the person with the secret key (Alice) can prove to the shelf-keeper that the box is hers and open it.
- The rest of the world sees a bunch of random boxes on a shelf, with no idea who they belong to.
It makes crypto as easy to use as email, but keeps your financial secrets safe from prying eyes.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.