pub struct SubspaceSignature(/* private fields */);Expand description
A secure digital signature, issued by a SubspaceSecret and verifiable with the corresponding SubspaceId.
This type is a fairly thin wrapper around ed25519_dalek::Signature, use the From implementations to convert between the two.
Chances are you never need to interact with this type directly, the [meadowcap] module should handle all authentication needs for you.
Trait Implementations§
Source§impl Clone for SubspaceSignature
impl Clone for SubspaceSignature
Source§fn clone(&self) -> SubspaceSignature
fn clone(&self) -> SubspaceSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubspaceSignature
impl Debug for SubspaceSignature
Source§impl Decodable for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
impl Decodable for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
Source§type ErrorReason = !
type ErrorReason = !
Reason why decoding can fail (beyond an unexpected end of input or a producer error).
Source§async fn decode<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
async fn decode<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
Decodes the symbols produced by the given bulk producer into a
Self, or yields an error if the producer does not produce a valid encoding. Read moreSource§impl DecodableCanonic for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
impl DecodableCanonic for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
Source§type ErrorCanonic = !
type ErrorCanonic = !
The type for reporting that the sequence of symbols to decode was not a valid canonic encoding of any value of type
Self. Read moreSource§async fn decode_canonic<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
async fn decode_canonic<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
Decodes the symbols produced by the given bulk producer into a
Self, and errors if the input encoding is not the canonical one.Source§impl Encodable for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
impl Encodable for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
Source§impl EncodableKnownLength for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
impl EncodableKnownLength for SubspaceSignature
Implements the identity function (an ed25519 signature is already a byte string).
Source§fn len_of_encoding(&self) -> usize
fn len_of_encoding(&self) -> usize
Computes the number of symbols of the encoding of
self. A successful call to encode must feed exactly that many symbols into the bulk consumer.impl Eq for SubspaceSignature
Source§impl<'a> From<&'a Signature> for &'a SubspaceSignature
impl<'a> From<&'a Signature> for &'a SubspaceSignature
Source§impl<'a> From<&'a SubspaceSignature> for &'a Signature
impl<'a> From<&'a SubspaceSignature> for &'a Signature
Source§fn from(value: &'a SubspaceSignature) -> Self
fn from(value: &'a SubspaceSignature) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a mut Signature> for &'a mut SubspaceSignature
impl<'a> From<&'a mut Signature> for &'a mut SubspaceSignature
Source§impl<'a> From<&'a mut SubspaceSignature> for &'a mut Signature
impl<'a> From<&'a mut SubspaceSignature> for &'a mut Signature
Source§fn from(value: &'a mut SubspaceSignature) -> Self
fn from(value: &'a mut SubspaceSignature) -> Self
Converts to this type from the input type.
Source§impl From<Signature> for SubspaceSignature
impl From<Signature> for SubspaceSignature
Source§impl From<SubspaceSignature> for Signature
impl From<SubspaceSignature> for Signature
Source§fn from(value: SubspaceSignature) -> Self
fn from(value: SubspaceSignature) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubspaceSignature
impl PartialEq for SubspaceSignature
Source§impl Signer<SubspaceSignature> for SubspaceSecret
impl Signer<SubspaceSignature> for SubspaceSecret
impl StructuralPartialEq for SubspaceSignature
Source§impl Verifier<SubspaceSignature> for SubspaceId
impl Verifier<SubspaceSignature> for SubspaceId
Auto Trait Implementations§
impl Freeze for SubspaceSignature
impl RefUnwindSafe for SubspaceSignature
impl Send for SubspaceSignature
impl Sync for SubspaceSignature
impl Unpin for SubspaceSignature
impl UnsafeUnpin for SubspaceSignature
impl UnwindSafe for SubspaceSignature
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§impl<T, S> EncodableExt<S> for Twhere
T: Encodable<S>,
impl<T, S> EncodableExt<S> for Twhere
T: Encodable<S>,
Source§impl<T, S> EncodableKnownLengthExt<S> for Twhere
T: EncodableKnownLength<S>,
impl<T, S> EncodableKnownLengthExt<S> for Twhere
T: EncodableKnownLength<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more