[−][src]Struct substrate_primitives::ed25519::Signature
A signature (a 512-bit value).
Methods
impl Signature[src]
pub fn from_raw(data: [u8; 64]) -> Signature[src]
A new instance from the given 64-byte data.
NOTE: No checking goes on to ensure this is a real signature. Only use it if you are certain that the array actually is a signature. GIGO!
pub fn from_slice(data: &[u8]) -> Self[src]
A new instance from the given slice that should be 64 bytes long.
NOTE: No checking goes on to ensure this is a real signature. Only use it if you are certain that the array actually is a signature. GIGO!
pub fn from_h512(v: H512) -> Signature[src]
A new instance from an H512.
NOTE: No checking goes on to ensure this is a real signature. Only use it if you are certain that the array actually is a signature. GIGO!
Trait Implementations
impl Eq for Signature[src]
impl AsMut<[u8]> for Signature[src]
impl Default for Signature[src]
impl Clone for Signature[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl AsRef<[u8; 64]> for Signature[src]
impl AsRef<[u8]> for Signature[src]
impl PartialEq<Signature> for Signature[src]
impl From<Signature> for H512[src]
impl From<Signature> for [u8; 64][src]
impl Hash for Signature[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Debug for Signature[src]
impl Encode for Signature[src]
fn encode_to<EncOut: Output>(&self, dest: &mut EncOut)[src]
fn encode(&self) -> Vec<u8>[src]
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
impl Decode for Signature[src]
Auto Trait Implementations
impl Send for Signature
impl Unpin for Signature
impl Sync for Signature
impl UnwindSafe for Signature
impl RefUnwindSafe for Signature
Blanket Implementations
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
T: UncheckedFrom<S>,
fn unchecked_into(Self) -> T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<S> Codec for S where
S: Encode + Decode, [src]
S: Encode + Decode,
impl<T> KeyedVec for T where
T: Codec, [src]
T: Codec,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,