Skip to content

Commit

Permalink
🔊 add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelStark committed Jul 29, 2024
1 parent bcf8dff commit 51d06a0
Show file tree
Hide file tree
Showing 5 changed files with 2,159 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ rusqlite = { version = "0.32.0", features = ["bundled"] }
nostr-sdk = { git = "https://github.com/AbdelStark/nostr", rev = "95b5f63" }
log = "0.4.22"
tokio = { version = "1", default-features = false }
text-to-ascii-art = "0.1.10"
colored = "2.0.0"
14 changes: 14 additions & 0 deletions crates/core/src/dvm/service_provider.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::error::Error;

use colored::*;
use log::{debug, error, info};
use nostr_sdk::prelude::*;
use thiserror::Error;
Expand Down Expand Up @@ -94,6 +95,7 @@ impl ServiceProvider {
///
/// This method subscribes to Nostr events and handles incoming proving requests
pub async fn run(&self) -> Result<(), ServiceProviderError> {
print_banner();
let proving_req_sub_id = SubscriptionId::new(&self.settings.proving_req_sub_id);
let filter = Filter::new()
.kind(Kind::Custom(JOB_REQUEST_KIND))
Expand Down Expand Up @@ -207,3 +209,15 @@ impl ServiceProvider {
Ok(())
}
}

fn print_banner() {
let askeladd = text_to_ascii_art::to_art("Askeladd".to_string(), "standard", 0, 0, 0).unwrap();
let zk_proof = text_to_ascii_art::to_art("ZK proof DVM".to_string(), "small", 0, 0, 0).unwrap();

println!("{}", "*".repeat(80).green());
println!("\n{}", askeladd.green());
println!("{}", zk_proof.green());
println!("{}", "Censorship global proving network".green());
println!("{}", "Powered by Nostr and Circle STARKs.".green());
println!("{}", "*".repeat(80).green());
}
Loading

0 comments on commit 51d06a0

Please sign in to comment.