alloy-rs / alloy-rs/ruint

`support/ark_ff`: Implement the `BigInteger` trait.

未关闭
#148 0 条评论 0 个 reaction 已指派 1 人 已被 @recmo 认领 在 GitHub 查看
feature tracker
主要语言
Rust
星标
225
派生
70
平均合并
16 小时 54 分钟
30 天内合并 PR
8

描述

*On 2022-06-11 @recmo wrote in [`96d1dc6`](https://github.com/recmo/uint/commit/96d1dc674f20186f54a8d74c39b81cc137bb4394) “Merge pull request #146 from recmo/support2”:*

Implement the `BigInteger` trait.

```rust
#![cfg_attr(has_doc_cfg, doc(cfg(feature = "ark-ff")))]

use crate::{ToFieldError, Uint};
use ark_ff::{biginteger::*, fields::models::*, PrimeField};

// FEATURE: Implement the `BigInteger` trait.

macro_rules! impl_from_ark {
($ark:ty, $bits:expr, $limbs:expr) => {
impl From<$ark> for Uint<$bits, $limbs> {
fn from(value: $ark) -> Self {

```
*From [`src/support/ark_ff.rs:8`](https://github.com/recmo/uint/blob/96d1dc674f20186f54a8d74c39b81cc137bb4394/src/support/ark_ff.rs#L8)*

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。