Merge pull request #1365 from IntersectMBO/erikd/ghc-9.14
Support ghc-9.14
Support ghc-9.14
checkPartialFanout now verifies that headInValue equals headOutValue plus the sum of all distributed output values, preventing Ada theft via outputs not counted by the membership proof. The off-chain partialFanoutTx builder is updated accordingly to subtract distributed values from the continuing head output.
Got all changes from the capi-10.21 branch here
Fix warnings
Signed-off-by: Sasha Bogicevic <[email protected]>
Signed-off-by: Sasha Bogicevic <[email protected]>
Optimizations applied: * Single-pass serialization: each 'TxOut' is serialized once via @serialiseData . toBuiltinData@ and reused for both UTxO hash checks and accumulator scalar computation. * Combined CRS lookup: the reference input for the CRS is looked up once and decoded only when the membership check is actually reached.
We need to not use bls multiplication rn
Apply blake2b_224 before scalar conversion Compute commitments with the actual CRS used for proofs Build the accumulator using fanout output order
Signed-off-by: Sasha Bogicevic <[email protected]>
Signed-off-by: Sasha Bogicevic <[email protected]> nix flake check Introduce CRS script into tx-cost Signed-off-by: Sasha Bogicevic <[email protected]>
Signed-off-by: Sasha Bogicevic <[email protected]>