Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lint warnings #210

Merged
merged 2 commits into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/ecdsa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ pub fn keygen(
secret_recovery_key: &rng::SecretRecoveryKey,
session_nonce: &[u8],
) -> TofnResult<KeyPair> {
let rng =
rng::rng_seed_signing_key(ECDSA_TAG, KEYGEN_TAG, secret_recovery_key, session_nonce)?;
let rng = rng::rng_seed_signing_key(ECDSA_TAG, KEYGEN_TAG, secret_recovery_key, session_nonce)?;

let signing_key = k256_serde::SecretScalar::random(rng);

Expand Down
10 changes: 3 additions & 7 deletions src/ed25519/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ pub fn keygen(
secret_recovery_key: &rng::SecretRecoveryKey,
session_nonce: &[u8],
) -> TofnResult<KeyPair> {
let mut rng = rng::rng_seed_signing_key(
ED25519_TAG,
KEYGEN_TAG,
secret_recovery_key,
session_nonce,
)?;
let mut rng =
rng::rng_seed_signing_key(ED25519_TAG, KEYGEN_TAG, secret_recovery_key, session_nonce)?;

let signing_key = SigningKey::generate(&mut rng);

Expand Down Expand Up @@ -97,7 +93,7 @@ pub struct Asn1Signature<'a> {
#[cfg(test)]
mod tests {
use super::{keygen, sign, verify};
use crate::{crypto_tools::rng::dummy_secret_recovery_key, multisig::sign::MessageDigest};
use crate::crypto_tools::{message_digest::MessageDigest, rng::dummy_secret_recovery_key};
use std::convert::TryFrom;

#[test]
Expand Down
Loading