Skip to content

Commit

Permalink
Fix logging certifier pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Nov 2, 2023
1 parent 76ea639 commit 9f9a32e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
15 changes: 8 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions certifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
rand = "0.8.5"
serde_json = "1.0.108"
base64 = "0.21.5"
8 changes: 3 additions & 5 deletions certifier/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::path::PathBuf;

use base64::{engine::general_purpose, Engine as _};
use clap::{arg, Parser, Subcommand};
use ed25519_dalek::SigningKey;
use tracing::info;
Expand Down Expand Up @@ -66,12 +67,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

let config = certifier::configuration::get_configuration(&args.config_path)?;
let signer = SigningKey::from_bytes(&config.signing_key);
let pubkey_b64 = general_purpose::STANDARD.encode(signer.verifying_key().as_bytes());

info!(
"listening on: {:?}, pubkey: {:?}",
config.listen,
signer.verifying_key()
);
info!("listening on: {:?}, pubkey: {}", config.listen, pubkey_b64,);
info!("using POST configuration: {:?}", config.post_cfg);

let app: axum::Router = certifier::certifier::new(config.post_cfg, signer);
Expand Down

0 comments on commit 9f9a32e

Please sign in to comment.