Struct radicle_cob::signatures::ExtendedSignature
source · pub struct ExtendedSignature {
pub key: PublicKey,
pub sig: Signature,
}
Expand description
Signature with public key, used for SSH signing.
Fields§
§key: PublicKey
§sig: Signature
Implementations§
source§impl ExtendedSignature
impl ExtendedSignature
sourcepub fn new(public_key: PublicKey, signature: Signature) -> ExtendedSignature
pub fn new(public_key: PublicKey, signature: Signature) -> ExtendedSignature
Create a new extended signature.
sourcepub fn to_pem(&self) -> Result<String, ExtendedSignatureError>
pub fn to_pem(&self) -> Result<String, ExtendedSignatureError>
Convert to OpenSSH standard PEM format.
sourcepub fn from_pem(
pem: impl AsRef<[u8]>,
) -> Result<ExtendedSignature, ExtendedSignatureError>
pub fn from_pem( pem: impl AsRef<[u8]>, ) -> Result<ExtendedSignature, ExtendedSignatureError>
Create from OpenSSH PEM format.
Trait Implementations§
source§impl Clone for ExtendedSignature
impl Clone for ExtendedSignature
source§fn clone(&self) -> ExtendedSignature
fn clone(&self) -> ExtendedSignature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExtendedSignature
impl Debug for ExtendedSignature
source§impl Extend<ExtendedSignature> for Signatures
impl Extend<ExtendedSignature> for Signatures
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ExtendedSignature>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = ExtendedSignature>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl From<ExtendedSignature> for Signatures
impl From<ExtendedSignature> for Signatures
source§fn from(_: ExtendedSignature) -> Self
fn from(_: ExtendedSignature) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExtendedSignature
impl PartialEq for ExtendedSignature
impl Eq for ExtendedSignature
impl StructuralPartialEq for ExtendedSignature
Auto Trait Implementations§
impl Freeze for ExtendedSignature
impl RefUnwindSafe for ExtendedSignature
impl Send for ExtendedSignature
impl Sync for ExtendedSignature
impl Unpin for ExtendedSignature
impl UnwindSafe for ExtendedSignature
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)