Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taturosati committed Jun 15, 2024
1 parent e9a4c82 commit a49b3b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion common/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,6 @@ pub fn verify_auth_token(verifying_key: &str, token: &str) -> anyhow::Result<()>
verifying_key,
time.to_string().as_bytes(),
signature.as_slice(),
).map_err(|err| format_err!("Failed to verify: {}", err))
)
.map_err(|err| format_err!("Failed to verify: {}", err))
}
4 changes: 2 additions & 2 deletions common/src/crypto/asymmetric.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use base64::{engine::general_purpose::URL_SAFE, Engine};
use bip32::secp256k1::ecdsa::signature::Keypair;
use bip32::secp256k1::sha2::Sha256;
use bip32::{ChildNumber, Mnemonic, XPrv};
use crypto_box::aead::OsRng;
use crypto_box::PublicKey;
use pkcs8::{EncodePrivateKey};
use pkcs8::EncodePrivateKey;
use rand::thread_rng;
use rand_chacha::ChaCha20Rng;
use rand_core::SeedableRng;
Expand All @@ -13,7 +14,6 @@ use rsa::pkcs8::DecodePrivateKey;
use rsa::signature::{RandomizedSigner, SignatureEncoding, Verifier};
use rsa::{RsaPrivateKey, RsaPublicKey};
use std::str;
use bip32::secp256k1::ecdsa::signature::Keypair;

#[derive(Clone)]
pub struct SeedPhrase {
Expand Down

0 comments on commit a49b3b0

Please sign in to comment.