Struct crev_data::id::UnlockedId
source · pub struct UnlockedId {
pub id: PublicId,
pub keypair: Keypair,
}
Expand description
A PublicId
with the corresponding secret key
Fields§
§id: PublicId
§keypair: Keypair
Implementations§
source§impl UnlockedId
impl UnlockedId
pub fn new(url: Option<Url>, sec_key: &[u8]) -> Result<Self, IdError>
pub fn sign(&self, msg: &[u8]) -> Vec<u8>
pub fn type_as_string(&self) -> String
pub fn as_public_id(&self) -> &PublicId
pub fn url(&self) -> Option<&Url>
pub fn generate_for_git_url(url: &str) -> Self
pub fn generate(url: Option<Url>) -> Self
pub fn create_signed_trust_proof<'a>( &self, ids: impl IntoIterator<Item = &'a PublicId>, trust_level: TrustLevel, override_: Vec<OverrideItem> ) -> Result<Proof, Error>
Trait Implementations§
source§impl AsRef<Id> for UnlockedId
impl AsRef<Id> for UnlockedId
source§impl AsRef<PublicId> for UnlockedId
impl AsRef<PublicId> for UnlockedId
Auto Trait Implementations§
impl Freeze for UnlockedId
impl RefUnwindSafe for UnlockedId
impl Send for UnlockedId
impl Sync for UnlockedId
impl Unpin for UnlockedId
impl UnwindSafe for UnlockedId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more