1 of 18

Sebastian Nagel | sebastian.nagel@iohk.io

21 June 2023

Monthly review meeting

June 2023

Report | Recording

HYDRA

HYDRA | June 2023 |

2 of 18

Agenda

  • External Commits + Demo

  • Roadmap update

  • Delivered & current features�
  • Operating Hydra Nodes�
  • Next features�
  • Community updates

2

HYDRA | June 2023 |

3 of 18

Demo

  • External commits

3

UPDATE

HYDRA | June 2023 |

4 of 18

Legacy commit using internal wallet

4

HYDRA | June 2023 |

5 of 18

Commit from external wallet

5

HYDRA | June 2023 |

6 of 18

Roadmap Current - ex ideas

6

HYDRA | June 2023 |

7 of 18

Roadmap Current

7

HYDRA | June 2023 |

8 of 18

Roadmap Previous - ex ideas

8

HYDRA | June 2023 |

9 of 18

Roadmap Previous

9

HYDRA | June 2023 |

10 of 18

Delivered / Current features

  • Commit multiple UTxO #774
    • Generalization of on-chain scripts
    • Removes a previous, artificial limitation
    • Risk of committing “too much” as before

  • Commit from external wallet #215
    • Mostly done, only commit from scripts is still in review
    • No need to send funds to the hydra-node managed key
    • Clear separation of fuel and funds -> easier maintenance
    • Should allow integration with any wallet

10

HYDRA | June 2023 |

11 of 18

Development: API Revamp

  • Light-house projects are driving API demands

  • Recent changes to the Websocket API -> Band-Aid solutions

  • External commits also needed to query (the Cardano tx) -> first HTTP endpoint

  • Separate / authenticate access to some API resources

  • Command Query Responsibility Segregation (CQRS)

  • Also: AsyncAPI does not serve our purposes well -> move to OpenAPI?

11

HYDRA | June 2023 |

12 of 18

Delivered features

  • Benchmark performance of a Hydra Head #186
    • Established and published a baseline scenario
    • Horrible performance on github action runners
    • Next step: dedicated runners .. and actual performance improvements!

12

HYDRA | June 2023 |

13 of 18

Next features

  • Event source persistence #913
    • Direct findings from doing off-chain benchmarks -> biggest bottleneck
    • Expected improvement ~ 1 order of magnitude in confirmation time
    • Also opens up interesting possibilities for state observation in clients

  • Authenticate network messages #727
    • Reduce possibility to denial service of a Head
    • No funds at risk, but just killing liveness and forcing to re-initialize

  • ReqSn only sends Transaction IDs #728
    • Low-hanging fruit
    • Makes L2 protocol more efficient and fair
    • Required for batched transactions on L2

13

HYDRA | June 2023 |

14 of 18

Operating Hydra Nodes

  • Continuously operating a Hydra Head on mainnet with hydraw as sample app since March 2023
  • Investigating liveness issues led to improvements on the "ops" aspects of hydra-node
    • Reduce the level of redundancy in log messages (#922, #896)
    • Add more information on failures (#895)
    • Improve version reporting from various tools (node, tui)�
  • More work needed down to improve resilience of a layer 2 Hydra network #931 #188

14

HYDRA | June 2023 |

15 of 18

Community updates

  • Hydra for Auctions with MLabs - closing of project
    • Yielded multiple github issues for ideas
    • Demonstrated how to move scripts from L1 -> L2
    • Nice example of establishing crucial state on L1 and achieving scalability through L2�
  • Hydra for Payments - progressing nicely, more to share soon�
  • Hydra / Mithril talk proposal for Cardano Summit 2023
    • We messed up, submission deadline was during June 15 already
    • Anyone involved with the events team? Waiting for their response currently.�
  • Hydra hackathon on Rare Evo?
    • Putting together potential agenda / format
    • On-site workshop vs. remote hack-on-challenge before/after?

15

HYDRA | June 2023 |

16 of 18

Repository status

16

Number of commits is still not a good metric

HYDRA | June 2023 |

17 of 18

Repository status

17

Number of commits is still not a good metric

HYDRA | June 2023 |

18 of 18

Sebastian Nagel | sebastian.nagel@iohk.io

Questions & Feedback

Report | Recording

HYDRA

HYDRA | June 2023 |