[Pairing Home][Home]
We can perform some amazing things with crypto pairing. In this case we will take a message (\(M\)), and then generate two public keys (\(W_1\) and \(W_2\)), and then create two signatures (\(SIG_1\) and \(SIG_2\)) from the private keys (\(S_1\) and \(S_2\)). We will add the public keys to create a merged public key (\(W\)) and also add the signatures to produce a merged signature (\(SIG\)). We will then still be able to verify the merged signature with the merged public key. In this case we will use the Miracl Go library.
Barreto-Naehrig curves (BN-curves) are elliptic curves that support pairings, with good levels of security and efficiency. BN254 uses two 254-bit elliptic curves (G1 and G2).