mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-05 20:10:32 +00:00
Change personalization of BLAKE2b used in hash_into.
This commit is contained in:
parent
87536cea10
commit
2fe4e0d900
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ impl<C: CurveAffine> VerifyingKey<C> {
|
||||||
pub fn hash_into<T: Transcript<C>>(&self, transcript: &mut T) -> io::Result<()> {
|
pub fn hash_into<T: Transcript<C>>(&self, transcript: &mut T) -> io::Result<()> {
|
||||||
let mut hasher = Blake2bParams::new()
|
let mut hasher = Blake2bParams::new()
|
||||||
.hash_length(64)
|
.hash_length(64)
|
||||||
.personal(C::BLAKE2B_PERSONALIZATION)
|
.personal(b"Halo2-Verify-Key")
|
||||||
.to_state();
|
.to_state();
|
||||||
|
|
||||||
let s = format!("{:?}", self.pinned());
|
let s = format!("{:?}", self.pinned());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue