feat: Serialize using write
instead of read
#46
Labels
enhancement
Enhancement of the code, not introducing new features.
no-stale
This is exempt from the stale bot.
Serialize using
write
instead ofread
Describe the Feature Request
We have to change our architecture before we can efficiently implement Bitcoin Script. There's a problem arising from serialization
read
vswrite
.Currently, we're using only
read
. This has the advantage that the data type of the hints providing the TX data is very simple. Also we can hash those hints as provided, which creates a strong backbone for the validity of a block.However, reading might be the wrong approach overall, because we have to hash TXs in multiple different ways. For example, there's the TXID and a sighash for every input. So at some point we will have to use
write
instead ofread
for almost all hashes. That implies that it is probably easier to provide the TXs in high-level objects and then always usewrite
and neverread
.Describe Preferred Solution
write
functions inserialize.cairo
.write
functions forTransaction
andBlock
The text was updated successfully, but these errors were encountered: