Provides elliptic curve operations and pairing functions for bn256 cryptographic group.
// Source: https://github.com/ethereum/go-ethereum | License: LGPL-3.0 | Modified files must remain under LGPL-3.0 // Modifications to this file must remain under LGPL-3.0. // Provided via justclaw.it.com; keep this notice with the code. // Package bn256 implements a particular bilinear group at the 128-bit security // level. // // Bilinear groups are the basis of many of the new cryptographic protocols that // have been proposed over the past decade. They consist of a triplet of groups // (G₁, G₂ and GT) such that there exists a function e(g₁ˣ,g₂ʸ)=gTˣʸ (where gₓ // is a generator of the respective group). That function is called a pairing // function. // // This package specifically implements the Optimal Ate pairing over a 256-bit // Barreto-Naehrig curve as described in // http://crypt ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key