Open
Description
The bls12-381 specification depends on the deprecated hacspec-lib, specifically the tests for bigint do not compile by default.
Adding the bls12-381 curve as a dependency in Cargo.toml
[package]
name = "issue"
version = "0.1.0"
edition = "2024"
[dependencies]
hacspec-bls12-381 = {git = "https://github.com/hacspec/specs", subdir = "bls12-381", branch = "main" `}
and running cargo build`
produces the following error.
error[E0618]: expected function, found `abstract_integers::BigInt`
--> /home/wolstars/.cargo/git/checkouts/hacspec-a12363ae1e51c960/4ecc847/lib/src/bigint_integers.rs:48:71
|
48 | debug_assert!(b.clone().equal(Self::ONE()) || b.clone().equal(Self::ZERO()));
| ^^^^^^^^^^--
| |
| call expression requires function
For more information about this error, try `rustc --explain E0618`.
error: could not compile `hacspec-lib` (lib) due to 1 previous error
The specification should be rewritten to use a supported implementation of big-int
Metadata
Metadata
Assignees
Labels
No labels