Rustfmt
This commit is contained in:
+6
-2
@@ -58,7 +58,9 @@ pub trait Group: Copy + Sized + for<'a> Mul<&'a <Self as Group>::Scalar, Output
|
||||
type UniformBytesLen: ArrayLength<u8>;
|
||||
|
||||
/// Hashes a slice of pseudo-random bytes of the correct length to a curve point
|
||||
fn hash_to_curve(uniform_bytes: &GenericArray<u8, Self::UniformBytesLen>) -> Result<Self, InternalPakeError>;
|
||||
fn hash_to_curve(
|
||||
uniform_bytes: &GenericArray<u8, Self::UniformBytesLen>,
|
||||
) -> Result<Self, InternalPakeError>;
|
||||
|
||||
/// Get the base point for the group
|
||||
fn base_point() -> Self;
|
||||
@@ -128,7 +130,9 @@ impl Group for RistrettoPoint {
|
||||
}
|
||||
|
||||
type UniformBytesLen = U64;
|
||||
fn hash_to_curve(uniform_bytes: &GenericArray<u8, Self::UniformBytesLen>) -> Result<Self, InternalPakeError> {
|
||||
fn hash_to_curve(
|
||||
uniform_bytes: &GenericArray<u8, Self::UniformBytesLen>,
|
||||
) -> Result<Self, InternalPakeError> {
|
||||
// https://caniuse.rs/features/array_gt_32_impls
|
||||
let bits: [u8; 64] = {
|
||||
let mut bytes = [0u8; 64];
|
||||
|
||||
Reference in New Issue
Block a user