mirror of https://github.com/vacp2p/zerokit.git
Freeze rust version (#272)
This commit is contained in:
parent
b9d27039c3
commit
8b04930583
|
@ -88,7 +88,8 @@ jobs:
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
# TODO: Update to stable once wasmer supports it
|
||||||
|
toolchain: 1.82.0
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
|
|
|
@ -94,7 +94,8 @@ jobs:
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
# TODO: Update to stable once wasmer supports it
|
||||||
|
toolchain: 1.82.0
|
||||||
override: true
|
override: true
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
|
@ -157,10 +157,10 @@ impl ProcessArg for *mut RLN {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Buffer struct is taken from
|
///// Buffer struct is taken from
|
||||||
/// <https://github.com/celo-org/celo-threshold-bls-rs/blob/master/crates/threshold-bls-ffi/src/ffi.rs>
|
///// <https://github.com/celo-org/celo-threshold-bls-rs/blob/master/crates/threshold-bls-ffi/src/ffi.rs>
|
||||||
///
|
/////
|
||||||
/// Also heavily inspired by <https://github.com/kilic/rln/blob/master/src/ffi.rs>
|
///// Also heavily inspired by <https://github.com/kilic/rln/blob/master/src/ffi.rs>
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
|
|
|
@ -8,7 +8,7 @@ use std::{
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Full Merkle Tree Implementation
|
///// Full Merkle Tree Implementation
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/// Merkle tree with all leaf and intermediate hashes stored
|
/// Merkle tree with all leaf and intermediate hashes stored
|
||||||
|
|
|
@ -6,7 +6,7 @@ use std::str::FromStr;
|
||||||
use std::{cmp::max, fmt::Debug};
|
use std::{cmp::max, fmt::Debug};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Optimal Merkle Tree Implementation
|
///// Optimal Merkle Tree Implementation
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/// The Merkle tree structure
|
/// The Merkle tree structure
|
||||||
|
@ -55,7 +55,9 @@ impl FromStr for OptimalMerkleConfig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Implementations
|
////////////////////////////////////////////////////////////
|
||||||
|
///// Implementations
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
impl<H: Hasher> ZerokitMerkleTree for OptimalMerkleTree<H>
|
impl<H: Hasher> ZerokitMerkleTree for OptimalMerkleTree<H>
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue