<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oleg Nikolayev on Medium]]></title>
        <description><![CDATA[Stories by Oleg Nikolayev on Medium]]></description>
        <link>https://medium.com/@olehnikolaiev?source=rss-d46a4f42c447------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QUwN9sdUQqjJwPoQhHFG3Q.jpeg</url>
            <title>Stories by Oleg Nikolayev on Medium</title>
            <link>https://medium.com/@olehnikolaiev?source=rss-d46a4f42c447------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:12:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olehnikolaiev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BLS Deep Dive]]></title>
            <link>https://medium.com/skale/bls-deep-dive-793a4e8a6f4e?source=rss-d46a4f42c447------2</link>
            <guid isPermaLink="false">https://medium.com/p/793a4e8a6f4e</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[skale-technology]]></category>
            <dc:creator><![CDATA[Oleg Nikolayev]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 17:01:00 GMT</pubDate>
            <atom:updated>2019-05-21T22:57:00.704Z</atom:updated>
            <content:encoded><![CDATA[<p>By <a href="https://medium.com/u/d46a4f42c447">Oleg Nikolayev</a> and <a href="https://medium.com/u/30f440322267">Artem Payvin</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QS5n9U3U69ZGR1q6xNnEuQ.png" /></figure><p>Hello, everyone!</p><p>In this article, we are going to be covering the <a href="https://www.iacr.org/archive/asiacrypt2001/22480516.pdf">Boneh-Lynn-Shacham</a> (BLS) signature scheme and the implementation at SKALE.</p><p><em>Note: If you are interested in using BLS, we are going to be open sourcing our library in the coming weeks — stay in touch with us in our </em><a href="https://discord.gg/vvUtWJB"><em>Discord</em></a><em> for developer updates!</em></p><p>To begin, why are we interested in BLS / aggregate signatures?</p><h3>Multi-signature Verification</h3><p>Traditional multi-signature verification is slow and cumbersome — it requires multiple communication rounds to ensure that <em>m</em> of <em>n</em> participants have signed. And in the case of consensus protocols, such schemes require all signatures to be stored across the entire network. But, in the case of BLS, an aggregate signature can be made from some threshold of signatures shares and stored across the network in lieu of these disparate signatures.</p><p>Such a mechanism allows for smaller network overhead in the form of traffic / storage and also provides for faster verification of signatures and thresholds. These efficiencies have helped to contribute to the 20k TPS that SKALE has managed to achieve in its early SKALE-Chain implementations.</p><p>The first step in this our implementation is known as Distributed Key Generation (DKG) where we securely generate keys for each of <em>n</em> participants, where any threshold <em>t</em> + 1 of n participants could sign a message for a whole group.</p><h3>Distributed Key Generation (DKG)</h3><p>At SKALE, we use a modified version of the Joint-Feldman Protocol which uses sets of points on elliptic curves supported by Ethereum. At a high level, we have two sets of points on the elliptic curves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*LlL7okEAuJjecueA_nw0Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*cTkVhpUbNRD32x20CYb-ZQ.png" /></figure><p><em>Note</em>: Secret keys are from the <em>Fp</em> group. Public key(s) are from <em>G₂</em>. Signature and message hashes are from the <em>G₁</em> group, where <em>G₁</em> is an additive subgroup of <em>E₁</em> generated by point <em>P₁</em> and <em>G₂</em> is an additive subgroup of <em>E</em>₂ generated by point <em>P₂</em>. It is known that <em>G₁</em> and <em>G₂</em> are the only cyclic groups of order <em>q</em> on <em>E₁ </em>and<em> E₂</em> respectively (with well-chosen <em>P₁</em> and <em>P₂</em>). <em>p</em> and <em>q</em> are 256-bit prime numbers.</p><p>Given these two sets, the following takes place in SKALE’s DKG smart contract on the Ethereum Mainnet:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*9e2kSE65HJyNKPQewCHatg.png" /></figure><p><em>Note: For more information on DKG, please check out the </em><a href="https://en.wikipedia.org/wiki/Distributed_key_generation"><em>Wikipedia article</em></a><em> on it (</em><a href="https://link.springer.com/article/10.1007%2Fs00145-006-0347-3"><em>academic paper</em></a><em> is viewable by purchase only). All additional information about Ethereum cryptography you can search at the </em><a href="https://ethereum.github.io/yellowpaper/paper.pdf"><em>Yellowpaper</em></a><em> at Appendix E. Precompiled Contracts.</em></p><p>After each node knows its own secret key and the group’s public verification value has been stored in the SKALE DKG smart contract, node(s) can create verifiable BLS signatures.</p><h3>Boneh-Lynn-Shacham (BLS)</h3><p>Before moving into implementation, it is important to first understand the following information problems:</p><h4>Computational Diffie-Hellman</h4><p>In a cyclic group, if you know: (<em>g</em>, <em>g</em> * <em>x</em>, <em>g</em> * <em>y</em>), determine <em>g</em> * <em>xy</em>.</p><h4>Decisional Diffie-Hellman</h4><p>In a cyclic group, if you know (<em>g</em>, <em>g</em> * <em>x</em>, <em>g</em> * <em>y</em>, <em>g</em> * <em>z</em>), determine if <em>z</em> ≟ <em>xy</em></p><h4>Co-decisional Diffie-Hellman</h4><p>In two cyclic groups, if you know (<em>a</em>, <em>a</em> * <em>x</em>, <em>b</em>, <em>b</em> * <em>y</em>) where <em>a</em> ∈ <em>G₁</em> and <em>b</em> ∈ <em>G₂</em>, determine if <em>x</em> ≟ <em>y</em>.</p><p>BLS uses a ‘pairing’ to make the Computation and Decisional problems hard in both groups, but the Co-decisional problem easy. To begin with our BLS, we first need a function known as a ‘Bilinear Mapping’.</p><p><em>Note: BLS has been around for &gt;10 years and is provably secure with one additional assumption of hardened implementations (this just means that it has only been implemented over the past &lt;5 years whereas ECDSA and others have been live for &gt;20).</em></p><h3>Bilinear Mapping</h3><p>A Bilinear mapping is a function with the special property that moving around exponents or multiplying doesn’t matter / change the result. At SKALE, we use a bilinear mapping for additive abstract groups with the property that multiplying does not change the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*wRAsXl2wLzyXcQk-7q6dBg.png" /><figcaption>Bilinear map for additive abstract groups G₁, G₂, Fp₁₂</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*79_sa7ERgGJOf6ncGctJ8A.png" /></figure><p><em>Note: SKALE uses </em><a href="https://github.com/scipr-lab/libff/blob/04094606d6e90f4d6a2d6a9d32a3a5a660b67bd4/libff/algebra/curves/alt_bn128/alt_bn128_pairing.hpp"><em>this</em></a><em> implementation based on </em><a href="http://crypto.stanford.edu/~dabo/papers/aggreg.pdf"><em>this</em></a><em> scheme.</em></p><h3>Signature Scheme</h3><p>This function allows us to create the a signature scheme where we multiply the secret key by the hash of the message to create our signature. The BLS signature scheme is represented below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*nDibuMi5eWde3kRobA1Kbw.png" /></figure><p><em>Note: The source of randomness for selecting x is provided by the </em><a href="https://github.com/scipr-lab/libff/blob/master/libff/common/rng.hpp"><em>libff</em></a><em> C++ library for finite fields and elliptic curves.</em></p><p>For verification, we check if the pairing of the signature and our generator point in <em>E₂</em> is equal to the pairing of message hash and the public key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*FPO1uAnVChkWx6wkjcm6jQ.png" /><figcaption>verification scheme</figcaption></figure><h3>Aggregate Signatures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*4DFaWpO0lJgMbsl0ODwWLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*PNipAwIAbdQF-yyJ-Ht8tg.png" /></figure><p>For verification, we check if the pairing of the sum of the aggregated signatures multiplying by corresponding Lagrange coefficients and our generator point on <em>E₂</em> is equal to the pairing of message hash and the common public key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VhgkTJRDFWlRoi0YglnNkw.png" /><figcaption>verification of aggregate signatures</figcaption></figure><p><em>Note: you can check for yourself that:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*_HPfMxpxfq8x_F_w9N5_vw.png" /></figure><h4>Learn More</h4><p>With DKG and BLS, SKALE has managed to exceed over 20k transactions and achieve finality in its SKALE-Chains. We are currently working on tooling for this technology to provide an open source implementation to the Ethereum community. If you’d like to learn more about our efforts, make sure to join our developer community on <a href="https://discord.gg/vvUtWJB">Discord</a> and check out our <a href="https://developers.skalelabs.com/">Developer Documentation</a>!</p><p>Also, feel free to also check out our <a href="https://medium.com/skale/the-skale-tech-stack-5beb025acb6a">Technical Overview</a> and <a href="https://medium.com/skale/skales-consensus-c90de0b61a4c">Consensus Overview</a> for a deeper dive into how SKALE works and is able to provide 20,000 TPS.</p><p>SKALE’s mission is to make it quick and easy to set up a cost-effective, high-performance sidechain that runs full-state smart contracts. We aim to deliver a performant experience to developers that offers speed and functionality without giving up security or decentralization.</p><p>Follow us here on <a href="https://t.me/skaleofficial">Telegram</a>, <a href="https://twitter.com/skalelabs">Twitter</a>, <a href="https://discord.gg/vvUtWJB">Discord</a>, and sign up for updates via this <a href="https://www.skalelabs.com/#contact-us">form</a> on the SKALE website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=793a4e8a6f4e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skale/bls-deep-dive-793a4e8a6f4e">BLS Deep Dive</a> was originally published in <a href="https://medium.com/skale">SKALE</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>