project screenshot 1
project screenshot 2
project screenshot 3

GOAT RAMP

GOAT RAMP brings your offchain credit card payments onchain by extracting the signatures inside the NFC chip.

GOAT RAMP

Created At

ETHGlobal Istanbul

Winner of

CELO - Best dApps on Celo Blockchain 3rd Place

Gnosis Chain - EVM Migration Tool Prize

Arbitrum - Pool Prize

Prize Pool

Scroll - Deploy on Scroll

Prize Pool

Project Description

GOAT RAMP uses the NFC chips that are in bank cards (Mastercard, Visa) to extract signatures that we can use to prove that a payment was made (thus proving also ownership of the card). This means that we can do actual credit/debit card payments and have that information processed onchain.

We realized it could be very good for creating new trust-minimized onramps/offramps, here's how: Alice wants to offramp 100 USDC and Bob wants to onramp the same amount, Bob pays Alice with his credit card using our system, which will create a zk proof of the payment that our verifier contract can verify and unlock the 100 USDC from Alice if valid.

We are emulating the payment terminals for the prototype by using an NFC reader and the software necessary to communicate with the cards.

How it's Made

This project makes use of an open-source payment terminal emulator called "emvpt", a bank card simulator for tests, an NFC reader and our circuit to prove one of the signatures coming from the cards.

The payment terminal emulator works in tandem with the NFC reader by basically using it to send and receive messages to the cards, as if the cards were communicated with an actual merchant terminal. Communication is done with the EMV (Europay, Mastercard, Visa) protocol, which specifies a lot of commands detailing how to fetch specific data, how to ask for a payment signature, etc. This setup allows us to get a signature made by the Secure Element chip in the card.

This signature can then be put through our ZK SNARK circuit that will simply decrypt the RSA cipher (EMV spec calls it Signed Authentication Data) that the Secure Element encrypted and compare it to the message that should have been signed (Authentication Data), this is the same as verifying the signature.

Once we get that proof, we can send it to the onchain verifier and unlock whatever onchain interaction we want. In the case of GOAT RAMP we want to unlock onchain funds of offrampers to onrampers.

background image mobile

Join the mailing list

Get the latest news and updates