×

Trade with small amounts only on mainnet!

Monitor bitcointalk / comb_talk (telegram) / comb-bridge (matrix).

Mainnet trading is enabled but it is new. Please be careful. Thank you.

Step 1: Connect MetaMask

To sell or buy Haircombs, you first need to connect to your MetaMask wallet.


Select a trading pair.



Reminder
  • Store your MetaMask seed in a safe location.
  • Switching a trading pair during an ongoing trade will erase all your trade credintals.

Step 2: Buy Haircomb

Avatar Alice Welcomb to the exciting world of quantum resistant cryptography! The Buy Haircomb feature guides you through the process of purchasing your first Haircombs.



Alice Needs
  • Some tradeable EVM tokens to sell.
  • Enough EVM native tokens to pay gas fees for the deposit and/or rollback.
The Journey of Alice
  1. Enter the address, timeout, and price.
  2. Tokens are deposited into the contract.
  3. Haircombs deposit proof is confirmed.
  4. Forward commitments are confirmed.
  5. Enter the txid of contract withdrawal (from contract to Bob)
  6. Withdraw Haircombs using a Merkle transaction.
The rolback
  1. If Alice closes the window or there is a problem, she can rollback.

Step 2: Sell Haircomb

Avatar Bob Did you lose interest in Haircomb or the tokens are just not for you? The Sell Haircomb feature navigates you on your exit journey. Say goodbye to your Haircombs.



Bob Needs
  • Enough Bitcoin to make commitments and pay the on-chain fees.
  • Some Haircombs to sell.
  • Enough EVM native tokens to pay gas fees upon withdrawal.
The Journey of Bob
  1. Enter the address and price.
  2. Select an order.
  3. Poll for the transaction.
  4. Pay with Haircombs and send the history to Alice.
  5. Make BTC commitments.
The rolback
  1. If Bob closes the window or there is a problem, he can rollback.
Step 1: Home Step 2: Buy Haircomb Step 3: Order Result Step 4: The File Step 5: The Reveal Step 6: Bob Withdraws Step 7: Merkle Transaction
Step 1: Home Step 2: Buy Haircomb Step 3: Order Result Step 4: The File Step 5: The Reveal Step 6: Bob Withdraws Step 7: Merkle Transaction

Step 2: Buy Haircomb

Start a New Deal

Address

ERC20 Token

Price

Timeout


Crypto





Step 3: Order Result

Order Accepted

Bob's Decider
Bob's Public Swap Prefix 1
Bob's Public Swap Prefix 2
Bob's Public Swap Keccak 1
Bob's Public Swap Keccak 2
Bob's Public Swap Full1
Bob's Comb Address
Bob's Address
EVM Contract Swap
Please wait a few minutes and make the deposit in MetaMask when it becomes available...

Step 4: The File

Waiting for the File

Wait for the file.

File

history.dat

Stacks:
Transactions:
Merkle Transactions:


Verifying the File

Import the file into your Haircomb wallet.

Verify that the following is true:

Coins - Balance Address (Haircomb Swap Contract):
Coins - Balance Amount (Natashas):

If true, press Confirm History to continue.



Step 5: The Reveal

Check that the commitments are committed, then give the private value to Bob.

Bob's commitment 1
Bob's commitment 2
My Commitment 1


Step 6: Bob Withdraws

Check that Bob withdraws. or enter the TxID of Bob's Withdrawal.



Step 7: Merkle Transaction

Import the following Merkle transaction into your wallet.

Step 1: Home Step 2: Sell Haircomb Step 3: Select Order Step 4: Order Result Step 5: Pay and send Step 6: Commitments
Step 1: Home Step 2: Sell Haircomb Step 3: Select Order Step 4: Order Result Step 5: Pay and send Step 6: Commitments

Step 2: Sell Haircomb

Start a New Deal

Address

ERC20 Token

Price (optional)

Timeout (optional)

Crypto


Commitment

commitment


Step 3: Select Order

Deals



Offered amount Needed amount Price Timeout Action

Step 4: Order Result

Order Accepted

My Decider
Alice's Public Swap Prefix 1
Alice's Public Swap Prefix 2
Alice's Public Swap Keccak 1
Alice's Public Swap Keccak 2
Alice's Comb Address
Alice's Address
Token
Timeout
Sold Amount
EVM Contract Swap
EVM Contract Midstate



Step 5: Pay and send

Making the payment

Based on the counterpary deposit:

Transaction ID (NOT an address!):

1. Make the following haircomb payment:

Destination Address (Haircomb Swap Contract):
Destination Amount (Natashas):

2. Wait for 8 on-chain confirmations (Time consuming step)

3. Export the history for recipient Destination Address (Haircomb Swap Contract)

4. Send the history using the widget on the right

5. Check that the counterparty accepted the history by re-clicking Send the proof button

Sending the proof




Step 6: Commitments

Finalizing the commitments

Alice's commitment
Alice's commitment QR
commitment
Bob's commitment
Bob's commitment QR
commitment



Step 1: Home Step 2: Rollback Purchase
Step 1: Home Step 2: Rollback Purchase

Step 2: Rollback Haircomb Purchase

Deals

Offered amount Needed amount Price Timeout Action

Rollback Haircomb Purchase




Step 1: Home Step 2: Rollback Sale
Step 1: Home Step 2: Rollback Sale

Step 2: Rollback Haircomb Sale

Deals

Offered amount Needed amount Price Timeout Action

Rollback Haircomb Sale

Be sure that Alice withdraws. Or enter the TxID of Alice's Withdrawal.




Haircomb Sale Rollback Commitments

To rollback your Haircombs, fund these addresses with 330 sats each.

Alice's commitment
Alice's commitment QR
commitment
Bob's commitment
Bob's commitment QR
commitment

Haircomb Sale Rollback Merkle Transaction

Import the following Merkle transaction into your wallet.