mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Make init_with_hashers() internal to transcript crate
Co-authored-by: Jack Grigg <jack@electriccoin.co>
This commit is contained in:
parent
7822201c9c
commit
15682bf16f
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ impl<C: CurveAffine, HBase: Hasher<C::Base>, HScalar: Hasher<C::Scalar>>
|
|||
|
||||
/// Initialise a new transcript with some given base_hasher and
|
||||
/// scalar_hasher
|
||||
pub fn init_with_hashers(base_hasher: &HBase, scalar_hasher: &HScalar) -> Self {
|
||||
#[cfg(test)]
|
||||
pub(crate) fn init_with_hashers(base_hasher: &HBase, scalar_hasher: &HScalar) -> Self {
|
||||
Transcript {
|
||||
base_hasher: base_hasher.clone(),
|
||||
scalar_hasher: scalar_hasher.clone(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue