  The need for data trading promotes the emergence of data market. However, in
conventional data markets, both data buyers and data sellers have to use a
centralized trading platform which might be dishonest. A dishonest centralized
trading platform may steal and resell the data seller's data, or may refuse to
send data after receiving payment from the data buyer. It seriously affects the
fair data transaction and harm the interests of both parties to the
transaction. To address this issue, we propose a novel blockchain-based data
trading framework with Trusted Execution Environment (TEE) to provide a trusted
decentralized platform for fair data trading. In our design, a blockchain
network is proposed to realize the payments from data buyers to data sellers,
and a trusted exchange is built by using a TEE for the first time to achieve
fair data transmission. With these help, data buyers and data sellers can
conduct transactions directly. We implement our proposed framework on Ethereum
and Intel SGX, security analysis and experimental results have demonstrated
that the framework proposed can effectively guarantee the fair completion of
data tradings.
