Skip to content
Merged
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: 3 additions & 0 deletions rust/src/graphql-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ async fn main() -> Result<()> {
if decoding_key.is_none() {
tracing::warn!("Server is running WITHOUT authentication. Everyone has full access.");
}

// Note: To generate a pk/sk pair
// sk: openssl ecparam -name prime256v1 -genkey -noout -out private.pem
// pk: openssl ec -in private.pem -pubout -out public.pem
// convert key format: openssl pkcs8 -topk8 -nocrypt -in private.pem -out private_p8.pem
// issue jwt: jwt encode --secret @private_p8.pem --alg ES256 --exp=<epoch secs> --sub=<account id> '{"write": true}'

tracing::info!("db_path {db_path} lwd_url {lwd_url} port {port}");
let coin = Coin::new()
Expand Down
Loading