Skip to content

Commit

Permalink
fixed doc
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanKung committed May 28, 2024
1 parent 5ba44c5 commit 143a61e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/core/src/ecc/signers/bls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ pub fn hash_to_curve(msg: &[u8]) -> Result<[u8; 96]> {
}

/// Sign message with bls privatekey
/// reimplemented via https://docs.rs/bls-signatures/latest/src/bls_signatures/key.rs.html#103
/// signature = hash_into_g2(message) * sk
pub fn sign(sk: SecretKey, hashed_msg: &[u8; 96]) -> Result<Signature> {
let sk: Fr = sk.try_into()?;
Expand Down

0 comments on commit 143a61e

Please sign in to comment.