dcSpark / cardano-multiplatform-lib

Rust implementation of Cardano
MIT License
98 stars 36 forks source link

[WIP] Ref script size fee calculation + Ref input support (tx builder) #349

Closed rooooooooob closed 2 months ago

rooooooooob commented 2 months ago

Fee calculation has changed to take into account ref script sizes via the new protocol parameter min_fee_ref_script_cost_per_byte.

TxBuilder has been updated to actually take into account reference inputs. Before it let you add them to transactions but the witness checks were oblivious to them.

Draft PR still. I have never worked with reference inputs or reference scripts before so some of this could be incorrect still