mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Differentiate no-std from alloc within tests/no-std
Fixes `no-std` builds for packages which intended to be `no-std` (without `alloc`). Updates a variety of MSRVs to 1.73 due to `flexible-transcript` no longer using `std-shims` to achieve 1.66 (as `std-shims` requires `alloc`). A future improvement would be for `std-shims` to have an `alloc` feature and only provide MSRV shims without it.
This commit is contained in:
@@ -71,7 +71,11 @@ impl Ciphersuite for Ed448 {
|
||||
}
|
||||
|
||||
fn hash_to_F(dst: &[u8], data: &[u8]) -> Self::F {
|
||||
let digest = Self::H::digest([dst, data].concat());
|
||||
let mut digest = Self::H::new();
|
||||
Update::update(&mut digest, dst);
|
||||
Update::update(&mut digest, data);
|
||||
let digest = digest.finalize();
|
||||
|
||||
let mut wide_scalar = [0; 114];
|
||||
wide_scalar.copy_from_slice(digest.as_ref());
|
||||
Scalar::from_uniform_bytes(&wide_scalar)
|
||||
|
||||
Reference in New Issue
Block a user