Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign utxo hashes and verify close tx output datum #338

Merged
merged 20 commits into from
May 10, 2022

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented May 3, 2022

❄️ Sign and verify utxo hashes of snapshots

❄️ Ensure the "continuing datum" of close transactions is having the right utxo hash

@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from 3d034ef to 6680882 Compare May 3, 2022 10:32
@ch1bo ch1bo changed the title Ensemble/strengthen close tx Sign utxo hashes and verify close tx output datum May 3, 2022
@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from 6680882 to d51f5ba Compare May 4, 2022 07:36
@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from d51f5ba to 411d7de Compare May 5, 2022 08:45
@github-actions
Copy link

github-actions bot commented May 5, 2022

Transactions Costs

Sizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using arbitrary values and results are not fully deterministic and comparable to previous runs.

Metadata
Generated at 2022-05-10 16:07:00.640803734 UTC
Max. memory units 14000000.00
Max. CPU units 10000000000.00
Max. tx size (kB) 16384

Cost of Init Transaction

Parties Tx size
1 4645
2 4846
3 5044
5 5446
10 6446
30 10448
59 16248

Cost of Commit Transaction

Currently only one UTxO per commit allowed (this is about to change soon)

UTxO Tx size % max Mem % max CPU
1 5861 17.74 8.68

Cost of CollectCom Transaction

Parties Tx size % max Mem % max CPU
1 12200 19.01 10.18
2 13036 39.75 21.88
3 13603 64.67 35.83
4 13469 78.84 43.59

Cost of Close Transaction

Parties Tx size % max Mem % max CPU
1 8213 9.59 5.10
2 8346 10.31 5.47
3 8517 11.71 6.21
5 8743 13.31 7.06
10 9892 25.50 13.61
30 13070 56.52 30.30
77 15178 93.80 49.23

Cost of Abort Transaction

Parties Tx size % max Mem % max CPU
1 16339 20.93 11.60

Cost of FanOut Transaction

Involves spending head output and burning head tokens. Uses ada-only UTxO for better comparability.

UTxO Tx size % max Mem % max CPU
1 11952 8.94 5.19
2 12047 13.35 7.79
3 12081 12.60 7.27
5 12120 17.71 10.29
10 12285 24.66 14.26
50 13630 83.12 47.82
100 15322 53.41 32.64
500 28630 0.00 0.00

@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from 411d7de to a436129 Compare May 5, 2022 09:25
@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from a436129 to b3af878 Compare May 6, 2022 10:42
@ch1bo ch1bo force-pushed the ensemble/strengthen-close-tx branch from bee9469 to a639067 Compare May 10, 2022 10:25
@github-actions
Copy link

github-actions bot commented May 10, 2022

Unit Test Results

    5 files  ±0    80 suites  ±0   7m 5s ⏱️ +10s
214 tests +1  212 ✔️ +1  2 💤 ±0  0 ±0 

Results for commit 8ed85ba. ± Comparison against base commit b3d927a.

♻️ This comment has been updated with latest results.

@abailly-iohk abailly-iohk marked this pull request as ready for review May 10, 2022 15:27
@abailly-iohk abailly-iohk requested a review from KtorZ May 10, 2022 15:27
@abailly-iohk abailly-iohk merged commit 92cd6c0 into master May 10, 2022
@abailly-iohk abailly-iohk deleted the ensemble/strengthen-close-tx branch May 10, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants