qtumproject / qips

Qtum Improvement Proposals
9 stars 2 forks source link

QIP-24: Add outputIndex to transaction receipt #24

Closed xuanyan0x7c7 closed 4 years ago

xuanyan0x7c7 commented 5 years ago

Abstract

In order to encode information about a transaction concerning which it may be useful to form a zero-knowledge proof, or index and search, we encode a receipt of each transaction containing certain information from concerning its execution.

Motivation

Qtum is based on UTXO model and is connected to Ethereum Virtual Machine (EVM) by Account Abstract Layer (AAL). Every Ethereum transaction calls a contract and generates one transaction receipt, but Qtum may call multiple contracts in one transaction and produce multiple receipts.

The following fields are saved in every Ethereum transaction receipt:

We need to add an outputIndex field to distinguish different contract calls in one Qtum transaction.

Earlz commented 4 years ago

Closing as it was implemented