Video thumbnail

BlackBook

Black-Book is an advanced dex that offers unmatched trading privacy and security.

BlackBook

Created At

ETHGlobal Trifecta - Trusted Execution Environments

Winner of

t1 Protocol - Best use of 𝚝𝟷 2nd place

Project Description

Black-Book is an advanced decentralized exchange (DEX) designed to offer unmatched trading privacy and security by leveraging Trusted Execution Environments (TEEs). Unlike conventional DEX platforms, Black-Book protects user orders and trading activities within secure, hardware-isolated environments, significantly reducing risks such as front-running and market manipulation, while giving access to classic order book like web2 experience native to crypto.

https://www.canva.com/design/DAGWkF4wNxY/7UI0wRU2-VimyphYWoyiWA/edit?utm_content=DAGWkF4wNxY&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

How it's Made

We leverage SGX intel TEE technology, to proccess orders on a secure but fast manner with a troughtput and match time comparable to a standard cex orderbook, but with all the security and simplicity provided by on chain settlement, and the privacy and trust of TEE, Only Level 2 order book data is exposed, and the trade matching remains private. we did not use many libraries aside from the basics and build all raw logic

On chain, we have a contract for handling orders, funds, and settlement.

On the SGX

We handle trade matching, trade execution, and a in memory order book.

Outside on the machine running the TEE, we there's also the crucial task of handling, the read-write from our trusted enviroment.

The backend has multiple components,

A listner that reads every block, looking for the contract events, a handler passing the info to the TEE api, and back to our backend, an executor, to sign and broadcast the on chain settelement.

background image mobile

Join the mailing list

Get the latest news and updates