Change personalization of BLAKE2b used in hash_into.

This commit is contained in:
Sean Bowe 2021-02-17 15:17:23 -07:00
parent 87536cea10
commit 2fe4e0d900
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ impl<C: CurveAffine> VerifyingKey<C> {
pub fn hash_into<T: Transcript<C>>(&self, transcript: &mut T) -> io::Result<()> {
let mut hasher = Blake2bParams::new()
.hash_length(64)
.personal(C::BLAKE2B_PERSONALIZATION)
.personal(b"Halo2-Verify-Key")
.to_state();
let s = format!("{:?}", self.pinned());