From f48a12f7708199e27970c483accb9704965bf8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michele=20Orr=C3=B9?= Date: Fri, 26 Jan 2024 12:19:21 +0100 Subject: [PATCH] Bump version. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/plugins/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 10953e0..46490c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -449,7 +449,7 @@ dependencies = [ [[package]] name = "nimue" -version = "0.0.1-beta4" +version = "0.0.1-beta5" dependencies = [ "anyhow", "ark-crypto-primitives", diff --git a/Cargo.toml b/Cargo.toml index 5cb476c..4dabe57 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nimue" -version = "0.0.1-beta4" +version = "0.0.1-beta5" authors = ["Michele OrrĂ¹ "] description = "A library for Fiat-Shamir transcripts." edition = "2021" diff --git a/src/plugins/mod.rs b/src/plugins/mod.rs index 8b2d58d..c06f91c 100644 --- a/src/plugins/mod.rs +++ b/src/plugins/mod.rs @@ -18,12 +18,12 @@ pub mod ark; #[cfg(feature = "group")] pub mod group; -/// Compute the bits needed in order to obtain a -/// (pseudo-random) uniform distribution in F. +/// Bits needed in order to obtain a (pseudo-random) uniform distribution in F. pub(super) const fn bytes_uniform_modp(modulus_bits: u32) -> usize { (modulus_bits as usize + 128) / 8 } +/// Bits needed in order to encode an element of F. pub(super) const fn bytes_modp(modulus_bits: u32) -> usize { (modulus_bits as usize + 7) / 8 }