bncurve
Nim Barreto-Naehrig pairing-friendly elliptic curve implementation
Summary
| Latest Version | Unknown |
|---|---|
| License | Apache License 2.0 |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install bncurve
choosenim install bncurve
git clone https://github.com/status-im/nim-bncurve
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| bncurve | ✓ | ✓ | ✓ | - | - | - | - | - | - | ✓ |
Source
| Repository | https://github.com/status-im/nim-bncurve |
|---|---|
| Homepage | https://github.com/status-im/nim-bncurve |
| Registry Source | nimble_official |
README
BNCurve
Introduction
This pure Nim implementation of Barreto-Naehrig pairing-friendly elliptic curve.
This is a pairing cryptography library written in pure Nim. It makes use of the Barreto-Naehrig (BN) curve construction from [BCTV2015] to provide two cyclic groups G1 and G2, with an efficient bilinear pairing:
e: G1 × G2 → GT
This code is adaptation of bn library.
Security warnings
This library, like other pairing cryptography libraries implementing this construction, is not resistant to side-channel attacks.
Installation
Add to your .nimble file:
requires "https://github.com/status-im/nim-bncurve"
or install it via
nimble install https://github.com/status-im/nim-bncurve
Build and test
nimble install https://github.com/status-im/nim-bncurve
nimble test
License
Licensed and distributed under either of
- MIT license: LICENSE-MIT or http://opensource.org/licenses/MIT
or
- Apache License, Version 2.0, (LICENSE-APACHEv2 or http://www.apache.org/licenses/LICENSE-2.0)
at your option. This file may not be copied, modified, or distributed except according to those terms.