Skip to content

Commit

Permalink
fix blsful dep update
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
  • Loading branch information
dhuseby committed Mar 26, 2024
1 parent f10acbf commit a16fd96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "multikey"
version = "0.8.6"
version = "0.8.7"
edition = "2021"
authors = ["Dave Huseby <dwh@linuxprogrammer.org>"]
description = "Multikey self-describing cryptographic key data"
Expand All @@ -13,7 +13,7 @@ default = ["serde"]

[dependencies]
bcrypt-pbkdf = "0.10"
blsful = "2.5"
blsful = { version = "2.5", git = "https://github.com/mikelodder7/blsful.git" }
ed25519-dalek = { version = "2.1", features = ["rand_core"] }
elliptic-curve = "0.13"
hex = "0.4"
Expand Down
3 changes: 2 additions & 1 deletion src/nonce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ mod tests {
let n = Builder::new_from_random_bytes(32, &mut rng)
.try_build_encoded()
.unwrap();
//println!("{}", n);
let s = n.to_string();
println!("({}) {}", s.len(), s);
let s = n.to_string();
assert_eq!(n, EncodedNonce::try_from(s.as_str()).unwrap());
}
Expand Down
8 changes: 4 additions & 4 deletions src/views/bls12381.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl<'a> ConvView for View<'a> {
let public_key = secret_key
.public_key()
.map_err(|e| ConversionsError::PublicKeyFailure(e.to_string()))?;
let key_bytes = public_key.0 .0.value().to_vec();
let key_bytes = public_key.0 .0.value_vec();
Builder::new(Codec::Bls12381G1PubShare)
.with_comment(&self.mk.comment)
.with_key_bytes(&key_bytes)
Expand Down Expand Up @@ -431,7 +431,7 @@ impl<'a> ConvView for View<'a> {
let public_key = secret_key
.public_key()
.map_err(|e| ConversionsError::PublicKeyFailure(e.to_string()))?;
let key_bytes = public_key.0 .0.value().to_vec();
let key_bytes = public_key.0 .0.value_vec();
Builder::new(Codec::Bls12381G1PubShare)
.with_comment(&self.mk.comment)
.with_key_bytes(&key_bytes)
Expand Down Expand Up @@ -796,7 +796,7 @@ impl<'a> ThresholdView for View<'a> {
key_shares
.iter()
.try_for_each(|share| -> Result<(), Error> {
let key_bytes = share.as_raw_value().value();
let key_bytes = share.as_raw_value().value_vec();
let identifier = share.as_raw_value().identifier();

let mk = Builder::new(Codec::Bls12381G1PrivShare)
Expand Down Expand Up @@ -836,7 +836,7 @@ impl<'a> ThresholdView for View<'a> {
key_shares
.iter()
.try_for_each(|share| -> Result<(), Error> {
let key_bytes = share.as_raw_value().value();
let key_bytes = share.as_raw_value().value_vec();
let identifier = share.as_raw_value().identifier();

let mk = Builder::new(Codec::Bls12381G2PrivShare)
Expand Down

0 comments on commit a16fd96

Please sign in to comment.