[][src]Struct substrate_primitives::ed25519::Signature

pub struct Signature(pub [u8; 64]);

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]

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]

impl Debug for Signature[src]

impl Encode for Signature[src]

impl Decode for Signature[src]

Auto Trait Implementations

Blanket Implementations

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> MaybeDebug for T where
    T: Debug
[src]