-
Notifications
You must be signed in to change notification settings - Fork 2
Add kms signer #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add kms signer #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! let's put it into test before merging.
pub algorithm: ObjectIdentifier, | ||
|
||
/// This field is `OPTIONAL` and contains the ASN.1 `ANY` type, which | ||
/// in this example allows arbitrary algorithm-defined parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a wrong comment.
} | ||
} | ||
|
||
/// X.509 `AlgorithmIdentifier` (same as above) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a bit of comment what these are, i have no clue.
pub async fn get_and_cache_public_key(&mut self) -> anyhow::Result<()> { | ||
let (public_key, pubkey_evm) = self.get_public_key().await?; | ||
self.public_key = Some((public_key, pubkey_evm)); | ||
Ok(()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't we just do it in the try_new
method above?
@@ -172,11 +173,14 @@ async fn run_listener(input: RunListenerInput) -> Result<(), PubsubClientError> | |||
} | |||
|
|||
async fn get_signer(run_options: config::RunOptions) -> anyhow::Result<Arc<dyn Signer>> { | |||
match run_options.signer_uri.scheme() { | |||
let scheme = run_options.signer_uri.split("://").next().unwrap_or(""); | |||
println!("Using signer URI: {}", scheme); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe tracing::info?
No description provided.