{"id":13413,"date":"2018-09-11T00:00:00","date_gmt":"2018-09-10T16:00:00","guid":{"rendered":"https:\/\/www2019.dash.org\/2018\/09\/11\/dash-blog-introducing-long-living-masternode-quorums\/"},"modified":"2021-09-18T11:36:42","modified_gmt":"2021-09-18T11:36:42","slug":"blog","status":"publish","type":"post","link":"https:\/\/www.dash.org\/news\/blog\/","title":{"rendered":"Dash Blog: Introducing Long Living Masternode Quorums"},"content":{"rendered":"

Introducing Long Living Masternode Quorums<\/h1>\n

We\u2019re very happy to introduce the community to another concept that is currently under development: Long Living Masternode Quorums, or simply LLMQs. These will have quite some influence on Evolution and non-Evolution related topics and features, which you\u2019ll hopefully see after some time. More blog posts are planned which will go into more detail for the specific topics.<\/p>\n

What are Long Living Masternode Quorums?<\/h3>\n

I have already described the quorum system we currently use for InstantSend in a\u00a0previous<\/a>\u00a0post. That post also describes the issues and limitations with the old system and why we can\u2019t use it for new use cases. LLMQs provide a solution to the described problems and will be deployed as part of Evolution.<\/p>\n

They are long living (as the name implies\u2026) and possibly very large, increasing the security of those. At the same time, they only increase the required resources (CPU, RAM, network) on the members of such quorums, instead of increasing the load on the whole network.<\/p>\n

Long living means that instead of selecting a fresh quorum on-demand, we build them before we actually need them and then reuse them for a fixed period of time. The reason for this is that a LLMQ performs M-of-N threshold signing sessions to gain majority consensus when decisions need to be made. The new M-of-N scheme requires executing a trustless and distributed key generation (DKG) protocol before actual signing\/voting can happen. Since this DKG protocol is quite resource-intensive, we do it in advance and then reuse the keys for multiple signing sessions.<\/p>\n

Why\/How do they solve the limitations?<\/h3>\n

As described in the\u00a0previous post about quorums<\/a>, the old system requires propagation of each individual vote of each member of a quorum. Propagation means that the votes are transferred to all nodes in the network which then have to verify and store them. This does not scale well and might also cause a variety of problems with consensus.<\/p>\n

LLMQs however only require the members of the quorum to perform the propagation and validation of individual votes (signature shares). The final result (recovered signature) is only created and propagated to the remainder of the network when enough votes are collected by any quorum member. Since the final result is the outcome of a BLS based M-of-N threshold signing session, it\u2019s just a single BLS signature. Propagating only this single signature in the network requires a lot less CPU, RAM, and network bandwidth resources.<\/p>\n

As only the members of the LLMQs perform the hard work and there are multiple LLMQs active simultaneously, the overall network load remains well distributed.<\/p>\n

Other Advantages<\/h3>\n

Due to the use of BLS, we also get a few more advantages. All BLS signatures are deterministic and unique, which means that there is only one valid signature for every combination of message and keys. This even holds true for M-of-N threshold signatures, which are in the end just normal BLS signatures. The result of a LLMQ signing session is thus deterministic and unique as well.<\/p>\n

These properties are very important when it comes to storing quorum decisions on-chain. Without these properties, malleability problems would also leak into non-transactional features, e.g. blockchain users and state transitions. By eliminating malleability, Evolution can include features which were previously very hard to implement securely.<\/p>\n

LLMQs and Verification of Signing\u00a0Sessions<\/h3>\n

LLMQs are created with the help of a distributed key generation (DKG) protocol. The result of that protocol (the quorum commitment) is mined on-chain before activation and actual use of the LLMQ. This means that there is clear consensus about which LLMQs are active and which masternodes belong to which LLMQ. It also means that, unlike the old quorum system, every quorum signing session can be verified forever. This is very important when quorum decisions are mined on-chain or when SPV (or DAPI in the future) wallets need to verify quorum signatures.<\/p>\n

Size of\u00a0LLMQs<\/h3>\n

We will support multiple types of LLMQs, which most importantly differ in size and longevity. We have not decided exactly which sizes to use, but we are open to supporting LLMQs with as many as hundreds (e.g. 400) of members and as few as 10 members. It all depends on the use cases and their needs.<\/p>\n

Implementation of LLMQs as a\u00a0Platform<\/h3>\n

The implementation of LLMQs does already exist and is already very advanced (not just a simple proof of concept). It is implemented to be a platform, or base layer, for future use cases which require LLMQs. Basically, the implementation of new use cases should just call a few functions of the LLMQ platform. These functions are in the style of \u201csign this message\u201d, \u201cdo we have majority?\u201d and \u201cis there a conflict?\u201d. This should make it very easy to implement new use cases as they do not have to deal with the internals of LLMQs, DKGs, signing sessions, and so on.<\/p>\n

Required changes in\u00a0DIP3<\/h3>\n

DIP3<\/a>\u00a0will have to be slightly changed to support LLMQs. The DKG process requires BLS public keys to be known and verified before the DKG session can start. This means that we\u2019ll have to use a BLS public key instead of a ECDSA public key for the masternode operator key. DIP3 will be updated when we have made a final decision on which BLS curves to use.<\/p>\n

Use Cases for\u00a0LLMQs<\/h3>\n

The first and probably most obvious use case for LLMQs is InstantSend. It can be implemented by simply making LLMQ members threshold sign the inputs of observed transactions. If any member of a LLMQ collects enough threshold shares, they\u2019ll create the final result and propagate it to the whole network. With this, the network will only have to propagate one message per transaction input. If a node observes such a message for each of a transaction\u2019s inputs, it can consider that transaction as InstantSend confirmed.<\/p>\n

I\u2019ll post an article and another DIP soon which goes into more detail for InstantSend and how we could improve it with LLMQs.<\/p>\n

Other use cases directly involve Evolution-related features, especially State Transitions. We\u2019re also researching use cases which improve more non-Evolution related features. You\u2019ll see more blog posts and DIPs in the future in regard to all this.<\/p>\n","protected":false},"excerpt":{"rendered":"

Introducing Long Living Masternode Quorums<\/h1>\r\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[216],"tags":[],"acf":[],"yoast_head":"\nDash Blog: Introducing Long Living Masternode Quorums - Dash<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dash.org\/news\/blog\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dash Blog: Introducing Long Living Masternode Quorums - Dash\" \/>\n<meta property=\"og:description\" content=\"Introducing Long Living Masternode Quorums\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dash.org\/news\/blog\/\" \/>\n<meta property=\"og:site_name\" content=\"Dash\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DashPay\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-10T16:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-18T11:36:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media.dash.org\/wp-content\/uploads\/dash_facebook.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dash\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dashpay\" \/>\n<meta name=\"twitter:site\" content=\"@dashpay\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dash\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dash.org\/news\/blog\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dash.org\/news\/blog\/\"},\"author\":{\"name\":\"dash\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/49e370ea57b37d1186318dab9e4e6513\"},\"headline\":\"Dash Blog: Introducing Long Living Masternode Quorums\",\"datePublished\":\"2018-09-10T16:00:00+00:00\",\"dateModified\":\"2021-09-18T11:36:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dash.org\/news\/blog\/\"},\"wordCount\":1077,\"publisher\":{\"@id\":\"https:\/\/www.dash.org\/#organization\"},\"articleSection\":[\"News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dash.org\/news\/blog\/\",\"url\":\"https:\/\/www.dash.org\/news\/blog\/\",\"name\":\"Dash Blog: Introducing Long Living Masternode Quorums - Dash\",\"isPartOf\":{\"@id\":\"https:\/\/www.dash.org\/#website\"},\"datePublished\":\"2018-09-10T16:00:00+00:00\",\"dateModified\":\"2021-09-18T11:36:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dash.org\/news\/blog\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dash.org\/news\/blog\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dash.org\/news\/blog\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dash.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dash Blog: Introducing Long Living Masternode Quorums\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dash.org\/#website\",\"url\":\"https:\/\/www.dash.org\/\",\"name\":\"Dash\",\"description\":\"Dash is Digital Cash You Can Spend Anywhere\",\"publisher\":{\"@id\":\"https:\/\/www.dash.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dash.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dash.org\/#organization\",\"name\":\"Dash\",\"url\":\"https:\/\/www.dash.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png\",\"contentUrl\":\"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png\",\"width\":500,\"height\":500,\"caption\":\"Dash\"},\"image\":{\"@id\":\"https:\/\/www.dash.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/DashPay\",\"https:\/\/twitter.com\/dashpay\",\"https:\/\/www.instagram.com\/dashpay\",\"https:\/\/www.linkedin.com\/company\/10424093\",\"https:\/\/www.pinterest.com\/dashdigitalcash\",\"https:\/\/www.youtube.com\/c\/DashOrg\",\"https:\/\/en.wikipedia.org\/wiki\/Dash_cryptocurrency\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/49e370ea57b37d1186318dab9e4e6513\",\"name\":\"dash\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dash.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8aabe262ffeff934a0baa0b4a798992f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8aabe262ffeff934a0baa0b4a798992f?s=96&d=mm&r=g\",\"caption\":\"dash\"},\"url\":\"https:\/\/www.dash.org\/author\/dash\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dash Blog: Introducing Long Living Masternode Quorums - Dash","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dash.org\/news\/blog\/","og_locale":"en_US","og_type":"article","og_title":"Dash Blog: Introducing Long Living Masternode Quorums - Dash","og_description":"Introducing Long Living Masternode Quorums","og_url":"https:\/\/www.dash.org\/news\/blog\/","og_site_name":"Dash","article_publisher":"https:\/\/www.facebook.com\/DashPay","article_published_time":"2018-09-10T16:00:00+00:00","article_modified_time":"2021-09-18T11:36:42+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/media.dash.org\/wp-content\/uploads\/dash_facebook.png","type":"image\/png"}],"author":"dash","twitter_card":"summary_large_image","twitter_creator":"@dashpay","twitter_site":"@dashpay","twitter_misc":{"Written by":"dash","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dash.org\/news\/blog\/#article","isPartOf":{"@id":"https:\/\/www.dash.org\/news\/blog\/"},"author":{"name":"dash","@id":"https:\/\/www.dash.org\/#\/schema\/person\/49e370ea57b37d1186318dab9e4e6513"},"headline":"Dash Blog: Introducing Long Living Masternode Quorums","datePublished":"2018-09-10T16:00:00+00:00","dateModified":"2021-09-18T11:36:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dash.org\/news\/blog\/"},"wordCount":1077,"publisher":{"@id":"https:\/\/www.dash.org\/#organization"},"articleSection":["News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dash.org\/news\/blog\/","url":"https:\/\/www.dash.org\/news\/blog\/","name":"Dash Blog: Introducing Long Living Masternode Quorums - Dash","isPartOf":{"@id":"https:\/\/www.dash.org\/#website"},"datePublished":"2018-09-10T16:00:00+00:00","dateModified":"2021-09-18T11:36:42+00:00","breadcrumb":{"@id":"https:\/\/www.dash.org\/news\/blog\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dash.org\/news\/blog\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dash.org\/news\/blog\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dash.org\/"},{"@type":"ListItem","position":2,"name":"Dash Blog: Introducing Long Living Masternode Quorums"}]},{"@type":"WebSite","@id":"https:\/\/www.dash.org\/#website","url":"https:\/\/www.dash.org\/","name":"Dash","description":"Dash is Digital Cash You Can Spend Anywhere","publisher":{"@id":"https:\/\/www.dash.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dash.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dash.org\/#organization","name":"Dash","url":"https:\/\/www.dash.org\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dash.org\/#\/schema\/logo\/image\/","url":"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png","contentUrl":"https:\/\/media.dash.org\/wp-content\/uploads\/dash-d.png","width":500,"height":500,"caption":"Dash"},"image":{"@id":"https:\/\/www.dash.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DashPay","https:\/\/twitter.com\/dashpay","https:\/\/www.instagram.com\/dashpay","https:\/\/www.linkedin.com\/company\/10424093","https:\/\/www.pinterest.com\/dashdigitalcash","https:\/\/www.youtube.com\/c\/DashOrg","https:\/\/en.wikipedia.org\/wiki\/Dash_cryptocurrency"]},{"@type":"Person","@id":"https:\/\/www.dash.org\/#\/schema\/person\/49e370ea57b37d1186318dab9e4e6513","name":"dash","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dash.org\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8aabe262ffeff934a0baa0b4a798992f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8aabe262ffeff934a0baa0b4a798992f?s=96&d=mm&r=g","caption":"dash"},"url":"https:\/\/www.dash.org\/author\/dash\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/13413"}],"collection":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/comments?post=13413"}],"version-history":[{"count":1,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/13413\/revisions"}],"predecessor-version":[{"id":13788,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/posts\/13413\/revisions\/13788"}],"wp:attachment":[{"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/media?parent=13413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/categories?post=13413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dash.org\/wp-json\/wp\/v2\/tags?post=13413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}