We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0430054 commit fe13692Copy full SHA for fe13692
poseidon/src/hash.rs
@@ -3,7 +3,7 @@ use mina_curves::pasta::Fp;
3
4
use crate::{PlonkSpongeConstantsKimchi, Sponge, SpongeParamsForField};
5
6
-enum Item {
+pub enum Item {
7
Bool(bool),
8
U2(u8),
9
U8(u8),
@@ -26,7 +26,7 @@ impl std::fmt::Debug for Item {
26
}
27
28
impl Item {
29
- fn nbits(&self) -> u32 {
+ pub fn nbits(&self) -> u32 {
30
match self {
31
Item::Bool(_) => 1,
32
Item::U2(_) => 2,
@@ -37,7 +37,7 @@ impl Item {
37
38
39
40
- fn as_bigint(&self) -> u64 {
+ pub fn as_bigint(&self) -> u64 {
41
42
Item::Bool(v) => *v as u64,
43
Item::U2(v) => *v as u64,
0 commit comments