f8c6a14
zhenyi
feat(totp): add lib/totp crate for TOTP-based 2FA (HMAC-SHA1 + AES-GCM secret storage)
f8c6a14
use gix::hash::ObjectId;
use crate::submodule::types::{LinkUrl, SubmoduleList};
pub trait SubmoduleOps {
fn submodule_list(&self, tree_id: &ObjectId) -> Result<SubmoduleList, crate::Error>;
fn submodule_link_url(&self, path: &str, tree_id: &ObjectId) -> Result<LinkUrl, crate::Error>;
fn submodule_resolve(&self, path: &str, tree_id: &ObjectId) -> Result<ObjectId, crate::Error>;
}