From 79f1bfcf042c235caa33325c5bba414fb86ce4c5 Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Tue, 26 Mar 2024 11:20:32 -0600 Subject: [PATCH] update blsful dependency Signed-off-by: Dave Huseby --- Cargo.toml | 4 ++-- src/ms.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 598992a..7ff3bbb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multisig" -version = "0.3.1" +version = "0.3.2" edition = "2021" authors = ["Dave Huseby "] description = "Multisig self-describing multicodec implementation for digital signatures" @@ -12,7 +12,7 @@ license = "Apache-2.0" default = ["serde"] [dependencies] -blsful = "2.5" +blsful = { version = "2.5", git = "https://github.com/mikelodder7/blsful.git" } elliptic-curve = "0.13" multibase = "0.9" multicodec = { version = "0.3", git = "https://github.com/cryptidtech/rust-multicodec.git" } diff --git a/src/ms.rs b/src/ms.rs index ceb43f2..0c72d34 100644 --- a/src/ms.rs +++ b/src/ms.rs @@ -303,6 +303,7 @@ impl Builder { { let scheme_type_id = SchemeTypeId::from(sig); let sig_bytes: Vec = sig.as_raw_value().to_bytes().as_ref().to_vec(); + println!("signature length: {}", sig_bytes.len()); let codec = match sig_bytes.len() { 48 => Codec::Bls12381G1Sig, // G1Projective::to_compressed() 96 => Codec::Bls12381G2Sig, // G2Projective::to_compressed() @@ -334,7 +335,8 @@ impl Builder { let scheme_type_id = SchemeTypeId::from(sigshare); let sigshare = sigshare.as_raw_value(); let identifier = sigshare.identifier(); - let value = sigshare.value().to_vec(); + let value = sigshare.value_vec(); + println!("sigshare len: {}", value.len()); let codec = match value.len() { 48 => Codec::Bls12381G1SigShare, // large pubkeys, small signatures 96 => Codec::Bls12381G2SigShare, // small pubkeys, large signatures