Official BLS12-381 test vectors from Ethereum consensus specs
Try it Live
Run BLS12-381 examples in the interactive playground
This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
const infinity_g1 = new Uint8Array(128); // All zerosconst infinity_g2 = new Uint8Array(256); // All zeros// Adding infinity should return the other pointconst result = await g1Add(point, infinity_g1);// result === point