github.com/klaytn/klaytn@v1.12.1/crypto/bn256/cloudflare/doc.go (about)

     1  // Copyright 2018 The klaytn Authors
     2  //
     3  // This file is derived from crypto/bn256/cloudflare/bn256.go (2018/06/04).
     4  // See LICENSE in the crypto/bn256/cloudflare directory for the original copyright and license.
     5  
     6  // Package bn256 implements a particular bilinear group at the 128-bit security
     7  // level.
     8  //
     9  // Bilinear groups are the basis of many of the new cryptographic protocols that
    10  // have been proposed over the past decade. They consist of a triplet of groups
    11  // (G₁, G₂ and GT) such that there exists a function e(g₁ˣ,g₂ʸ)=gTˣʸ (where gₓ
    12  // is a generator of the respective group). That function is called a pairing
    13  // function.
    14  //
    15  // This package specifically implements the Optimal Ate pairing over a 256-bit
    16  // Barreto-Naehrig curve as described in
    17  // http://cryptojedi.org/papers/dclxvi-20100714.pdf. Its output is compatible
    18  // with the implementation described in that paper.
    19  package bn256