Skip to content

Commit

Permalink
chore: update minimum rust version
Browse files Browse the repository at this point in the history
Also update to 2021 edition.
  • Loading branch information
Stebalien committed Oct 17, 2023
1 parent 08fcca2 commit d0d4630
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name = "bls-signatures"
version = "0.15.0"
authors = ["dignifiedquire <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
resolver = "2"
rust-version = "1.63.0"
rust-version = "1.67.1"

description = "Aggregate BLS Signatures"
documentation = "https://docs.rs/bls-signatures"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.63.0
1.67.1
2 changes: 0 additions & 2 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ fn key_gen<T: AsRef<[u8]>>(data: T) -> Scalar {
/// https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-02#section-2.3
#[cfg(feature = "blst")]
fn key_gen<T: AsRef<[u8]>>(data: T) -> Scalar {
use std::convert::TryInto;

let data = data.as_ref();
assert!(data.len() >= 32, "IKM must be at least 32 bytes");

Expand Down

0 comments on commit d0d4630

Please sign in to comment.