From dd7e34a40936bb18d3f9c997daf57ebd7f8bbd51 Mon Sep 17 00:00:00 2001 From: Matteo Monti Date: Sat, 4 Jun 2022 06:04:05 +0200 Subject: [PATCH] Switch `multi` to `blst::min_pk` --- src/crypto/primitives/multi.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/primitives/multi.rs b/src/crypto/primitives/multi.rs index 8c41ef3..490e888 100644 --- a/src/crypto/primitives/multi.rs +++ b/src/crypto/primitives/multi.rs @@ -1,4 +1,4 @@ -use blst::min_sig::{ +use blst::min_pk::{ AggregateSignature as BlstAggregateSignature, PublicKey as BlstPublicKey, SecretKey as BlstSecretKey, Signature as BlstSignature, }; @@ -18,9 +18,9 @@ use std::{ hash::{Hash, Hasher}, }; -pub const PUBLIC_KEY_LENGTH: usize = 96; +pub const PUBLIC_KEY_LENGTH: usize = 48; pub const SECRET_KEY_LENGTH: usize = 32; -pub const SIGNATURE_LENGTH: usize = 48; +pub const SIGNATURE_LENGTH: usize = 96; pub const KEYPAIR_LENGTH: usize = PUBLIC_KEY_LENGTH + SECRET_KEY_LENGTH;