mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 19:32:55 +00:00
The remote signer relies on the `types` and `crypto/bls` crates from Lighthouse. Moreover, a number of tests of the remote signer consumption of LH leverages this very signer, making any important update a potential dependency nightmare. Co-authored-by: Paul Hauner <paul@paulhauner.com>
11 lines
438 B
Rust
11 lines
438 B
Rust
use crate::{BackendError, ZeroizeString};
|
|
|
|
/// The storage medium for the secret keys used by a `Backend`.
|
|
pub trait Storage: 'static + Clone + Send + Sync {
|
|
/// Queries storage for the available keys to sign.
|
|
fn get_keys(&self) -> Result<Vec<String>, BackendError>;
|
|
|
|
/// Retrieves secret key from storage, using its public key as reference.
|
|
fn get_secret_key(&self, input: &str) -> Result<ZeroizeString, BackendError>;
|
|
}
|