Kirill M
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Presentation ### 1. Hey hey! Hello everyone, thanks for coming! I am Kirill Minenko, I work on Tooling at Lido. Today I wanna talk about the tooling for Node Operators version 2. ### 2. v2 tooling scope * First I will tell you about scope of changes **pause** * Then I will mention our schedule **pause** * And then will go through technical stuff, and it's ok if you don't get it at first, it took quite a long time for me to understand technical details. And feel free to ask questions at the end. **pause** So let's start... ### 3. v2 tooling scope - brand new tooling The first scope is **Withdrawals**, and as you know, it is the next big thing for Ethereum and we should be prepared. **pause** The second scope is a Staking router, it is basically the load balancer for stake. If you want to know more about Staking Router you can watch previous Node Operators call recording. So, Withdrawals and Staking router are the brand new tooling. Yay! ### 4. Schedule Sometimes we all have a deadline that seems impossible to hit, but it's a deadline and it's unmovable. Our schedule is, the same. **pause** We have a Gorli Testnet in Mid March. And Mainnet launch somewhere in Early April. So, timeline, as you can see on the picture, is quite tight. And the next slide. ### 5. Brand New Tooling **pause** As you know It's important to use the right tools to do the job right, so what we have here. **pause** We have two new tools (it's Key Api and Ejector). And two pretty big updates - Oracle v2 and DSM (which stands for Deposit Security Module) Let's talk first about K-API. ### 6. Key api - works now along with oracle, ejector and dsm **pause** Key API is here to serve information about keys, validators and other data for Tooling services like Ejector, Oracle v2 and DSM. It periodically grabs the snapshot of data from Execution and Consensus nodes and keeps this snapshot nearby. **pause** It's worth mentioning that KAPI Consensus node connectivity is optional and can be disabled if it's not needed. KAPI in this case will serve only keys information. **pause** ### 7. Key api - goals and tech You know, getting all the state from Ethereum Nodes can take a while, and moreover in case of using third-party services it can cost a penny. Key API helps us with that -- since blockchain data is fetched from ethereum nodes, it is stored in KAPI to be quickly served via REST API interface. And key API is also designed to support Staking Router and Staking Modules. **pause** ### 8. Key api - monitoring Monitoring is crucial for K-API. It is not good if KAPI suddenly stops receiving new state from Ethereum nodes, because it will stop other services connected to it. Therefore it is pretty critical part of the whole system and right monitoring is necessary. Good news there are grafana dashboards carefully handcrafted for you in Github repo and you can take them, use them and improve them if you want. **pause** Aand next thing. ### 9. Ejector The Ejector. ### 10. Ejector - motivation. Let's talk how Node Operators should manage validator exits. **pause** Node Operator should constantly monitor specific event, called ValidatorExit event, emitted by the Oracle, and respond to it. Respond by MANUALLY making voluntary exit call to Consensus Node with a specially prepared exit message for that validator. Sounds pretty easy, however, this event can be triggered anytime 24 hours a day 7 days a week. And Ejector is here to make Node Operators's life easier. Node Operator just loads a small batch of presigned exit messages into Ejector and that's it! Then if user wants to withdwraw and buffer is empty - protocol will emit event and it will be handled by the Ejector. Super simple! ### 11. Ejector - tech details There are some technical details here, Ejector will need Execution and Consensus nodes and a bunch of presigned exit messages. Presigned messages can be created with public and private keys of validators with tools like E-T-H Do. Public keys of the oldest validators from KAPI. ### 12. Ejector - flow So, to summarize the flow, Node Operators should: 1 - Prepare batch of presigned messages 2 - Push this batch to Ejector 3 - Restart Ejector 4 - Wait until presigned messages will be used by Ejector 5 - And then just repeat everything from the beginning. ### 13. Ejector - compatible Ejector can be loaded with presigned messages coming from various tools and support messages that are compatible with Generic Message Format and E-T-H Do message format. And also you can build your own automatization to keep Ejector working. ### 14. Ejector - monitoring Right monitoring is also important for Ejector. Because if Node Operator delays validator ejection, protocol will handle it and ask OTHER node operator to eject a one of it's validators instead of delayed validator. **pause** Good news grafana dashboard is included in Github repo, and you can use it. ### 15. Oracle v2 - main Here you can see our oracles. First of all I want to say that the oracle v2 update is important only for Node Operators that run current oracles. If you don't run Oracle you can skip this update. **pause** Current oracle reports only protocol TVL, **pause** V2 Oracle brings TVL, handles withdrawals and reports exited and stucked validators. Plus new oracle supports Staking Router and designed to be extensible. Actually new oracle is not just one - there are two different oracles - small Exit Bus Oracle and big Acounting Oracle. They are bundled in separate applications and can be deployed separately. **pause** To handle withdrawals and new features of Staking Router oracle's onchain reports got a lot bigger. Bigger means more gas for each report and each oracle instance. And that is not good. =( To spend less on reporting and to be extensible, we use multiple techniques. I am going to tell you more about them. **pause** ### 16. Oracle v2 - hash consensus The first technique is a hash consensus, the idea is simple - oracles now agree on hash of the data instead of sending large data onchain. This is the first gas economy strategy. ### 17. Oracle v2 - reporting The second technique is a multi-phase reporting. Current oracle's sends full report in one transaction, and latest report costs even more gas, while v2 oracle will send multiple transactions splitting big last report into chunks. Of course this multi-phase report will only be made after hash consensus is reached, to keep all the needed data onchain. ### 18. Oracle v2 - fast lane The third technique is, what we call "fast lane". Each oracle has it's own number, and they have some kind of ordering. **pause** On each report all oracles are split into two groups - "fast lane" group and group of remaining oracles. In a good weather only "fast-lane" group actually do their reports, the rest of oracles do nothing, thus saving gas on transactions. Each report "fast-lane" group is shifted to the right by 1, so the oracles are rotated, and oracles order is checked onchain. This makes participation more predictable and equal. **pause** Let's talk about our small oracle. ### 19. Oracle v2 - Validator Exit Bus Couple words here. Exit bus oracle makes a decision what validator should be ejected, based on deterministic algoritm and emits the ValidatorExitRequest transaction onchain. The event in it is immediately handled by the Ejector, and he knows what to do with it. **pause** ### 20. Oracle v2 - Archive node Good news v2 oracles spend less gas on consensus, bad news they now require Archive Execution node, which is bigger. Correct calculation of protocol TVL after withdrawals era is only possible when looking at historic data, and only Archive node can provide it. **pause** There are different execution clients with different capabilities and options regarding archive data pruning, oracles will need up to 7 days of historic data. Everything older can be safely removed. Nodes compatible with history pruning are Erigon, Besu and Nethermind. So, you don't need to store whole history, because it's quite huge. ### 21. Oracle v2 - Gas economy Summing up... * previously every oracle paid a lot, and the last one even more because of report finalization. * now everyone pays less * and the participation is made more predictable and equal **pause** ### 22. DSM update Few words about Deposit Security Module update - New version is designed to support Staking Router and can individually pause each Staking Module independently. That's all the updates for DSM. ### 23. Node operators care. That's all about the tools. As you can see a lot of things changed, a lot of things left to be deploed and schedule is tight. There will be READMEs, manuals and docker-composes, what to do's in testnet and in what order. Plus there will be a team of DevOps rangers who can help you with some technical issues. ### 24. Fin That's all from tooling team for today! Thanks for coming! Now, questions time!

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully