@aztec/bn128

JS helper library for a Barreto-Naehrig pairing friendly curve

Usage no npm install needed!

<script type="module">
  import aztecBn128 from 'https://cdn.skypack.dev/@aztec/bn128';
</script>

README

bn128

Barreto-Naehrig pairing friendly curve providing 128 bits of security defined as: y2=x3+b.

Usage

Install the module:

$ yarn add @aztec/bn128

And import it in your project:

const bn128 = require('@aztec/bn128');

Example

Contributing

We strongly recommend that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install Modules

$ yarn install

Build

$ yarn build

Clean

$ yarn clean