TAAL-GmbH / bitcoin-ef

Other
2 stars 5 forks source link

TXID of an EF TX #1

Open carlosamcruz opened 1 year ago

carlosamcruz commented 1 year ago

Hey guys, I have many doubts about EF, the first is: how can the TXID of the EF TX format be determined?

ordishs commented 1 year ago

The TXID is calculated without including the EF data. This ensures the TXID is the same as without the EF.

EF is nothing more than an optimisation. When a client creates a transaction and signs it, it must have the full transaction data in memory. If the client sends this via EF, the server does not need to look up all the input values to verify the signature.