···4mod sql_repo_reader;
5mod sql_repo_transactor;
6mod transactor;
7+8+pub(crate) use reader::RepoReader;
9+pub(crate) use sql_repo_reader::SqlRepoReader;
10+pub(crate) use sql_repo_transactor::SqlRepoTransactor;
11+pub(crate) use transactor::RepoTransactor;
-3
src/config.rs
···33pub(crate) struct RepoConfig {
34 /// The path to the repository storage.
35 pub path: PathBuf,
36- /// Use SQLite for repository storage instead of CAR files.
37- #[serde(default)]
38- pub use_sqlite: bool,
39}
4041#[derive(Deserialize, Debug, Clone)]
···33pub(crate) struct RepoConfig {
34 /// The path to the repository storage.
35 pub path: PathBuf,
00036}
3738#[derive(Deserialize, Debug, Clone)]
+8
src/main.rs
···169 }
170}
17100000000172impl std::ops::Deref for RotationKey {
173 type Target = Secp256k1Keypair;
174
···169 }
170}
171172+impl SigningKey {
173+ /// Import from a private key.
174+ pub fn import(key: &[u8]) -> Result<Self> {
175+ let key = Secp256k1Keypair::import(key).context("failed to import signing key")?;
176+ Ok(Self(Arc::new(key)))
177+ }
178+}
179+180impl std::ops::Deref for RotationKey {
181 type Target = Secp256k1Keypair;
182