8000 bls12-381 uses deprecated big-int implementation · Issue #19 · hacspec/specs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bls12-381 uses deprecated big-int implementation #19
Open
@Boas-Hermansson

Description

@Boas-Hermansson

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0