Scalable and distributed custom feed generator, ott - on that topic

As the public key is specified in did:web I think its ok to have it transient for now

Changed files
+4 -3
crates
ott-xrpc
src
+4 -3
crates/ott-xrpc/src/main.rs
··· 1 1 use anyhow::Result; 2 2 use atproto_identity::{ 3 3 config::{default_env, optional_env, require_env, version, DnsNameservers}, 4 - key::{identify_key, to_public}, 4 + key::{generate_key, identify_key, to_public, KeyType}, 5 5 }; 6 6 use atproto_xrpcs::authorization::ResolvingAuthorization; 7 7 use axum::{ ··· 62 62 let service_did = format!("did:web:{}", external_base); 63 63 let dns_nameservers: DnsNameservers = optional_env("DNS_NAMESERVERS").try_into()?; 64 64 65 - let private_service_key = require_env("SERVICE_KEY")?; 65 + let private_service_key = generate_key(KeyType::P256Private)?.to_string(); 66 + 66 67 let private_service_key_data = identify_key(&private_service_key)?; 67 68 let public_service_key_data = to_public(&private_service_key_data)?; 68 69 let public_service_key = public_service_key_data.to_string(); ··· 118 119 } 119 120 120 121 async fn handle_index() -> Html<&'static str> { 121 - Html("<html><body><h1>Hello, World!</h1></body></html>") 122 + Html("<html><body><h1>Right place wrong protocol...</h1></body></html>") 122 123 } 123 124 124 125 // /.well-known/did.json