From 3cbcb6c49926fb7ed693614159430a8e7edcc942 Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Wed, 25 Oct 2023 12:01:46 +0200 Subject: [PATCH] Docs: recover provide cert at run-time --- docs/src/getting-started/recover.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/src/getting-started/recover.md b/docs/src/getting-started/recover.md index de56dfc3c..0ceb6a663 100644 --- a/docs/src/getting-started/recover.md +++ b/docs/src/getting-started/recover.md @@ -13,7 +13,10 @@ In order to recover access all you need to do is recover the `seed` from the BIP ```rust use gl_client::{Signer, TlsConfig, Scheduler, Bitcoin}; - let tls = TlsConfig(); + let cert = ...; // Your developer certificate (client.crt) + let key = ...; // Your developer key (client-key.pem) + + let tls = TlsConfig().identity(cert, key); let signer = Signer(seed, Network::Bitcoin, tls); let scheduler = Scheduler::new(signer.node_id(), Network::Bitcoin).await; @@ -24,7 +27,10 @@ In order to recover access all you need to do is recover the `seed` from the BIP ```python from glclient import Scheduler, Signer, TlsConfig - tls = TlsConfig() + cert = ... // Your developer certificate + key = ... // Your developer key + + tls = TlsConfig().identity(cert, key); signer = Signer(seed, network="bitcoin", tls=tls) scheduler = Scheduler( node_id=signer.node_id(), @@ -48,4 +54,4 @@ will provide access to the node. so you can load it next time you want to interact with the node. [signer]: ./index.md#signer -[scheduler]: ./index.md#scheduler \ No newline at end of file +[scheduler]: ./index.md#scheduler