Struct tet_application_crypto::sr25519::Signature[][src]

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

An Schnorrkel/Ristretto x25519 (“sr25519”) signature.

Instead of importing it for the local module, alias it to be available as a public type

Implementations

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, or if you immediately verify the signature. All functions that verify signatures will fail if the Signature is not actually a valid signature.

pub fn from_slice(data: &[u8]) -> Signature[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 AsMut<[u8]> for Signature[src]

impl AsMut<Signature> for Signature[src]

impl AsRef<[u8; 64]> for Signature[src]

impl AsRef<[u8]> for Signature[src]

impl AsRef<Signature> for Signature[src]

impl Clone for Signature[src]

impl CryptoType for Signature[src]

type Pair = Pair

The pair key type of this crypto.

impl Debug for Signature[src]

impl Decode for Signature[src]

impl Default for Signature[src]

impl<'de> Deserialize<'de> for Signature[src]

impl Encode for Signature[src]

impl EncodeLike<Signature> for Signature[src]

impl Eq for Signature[src]

impl From<Signature> for Signature[src]

impl From<Signature> for Signature[src]

impl From<Signature> for Signature[src]

impl Hash for Signature[src]

impl PartialEq<Signature> for Signature[src]

impl PassBy for Signature[src]

type PassBy = Inner<Signature, [u8; 64]>

The strategy that should be used to pass the type.

impl PassByInner for Signature[src]

type Inner = [u8; 64]

The inner type that is wrapped by Self.

impl Serialize for Signature[src]

impl<'_> TryFrom<&'_ [u8]> for Signature[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

impl<T, U> AsByteSlice<T> for U where
    T: ToByteSlice,
    U: AsRef<[T]> + ?Sized

impl<T, U> AsMutByteSlice<T> for U where
    T: ToMutByteSlice,
    U: AsMut<[T]> + ?Sized

impl<U> AsMutSliceOf for U where
    U: AsMut<[u8]> + ?Sized

impl<U> AsSliceOf for U where
    U: AsRef<[u8]> + ?Sized

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

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

impl<T> CallHasher for T where
    T: Hash

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

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: ToOwned + Encode
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<T> FromFFIValue for T where
    T: PassBy, 

type SelfInstance = T

As Self can be an unsized type, it needs to be represented by a sized type at the host. This SelfInstance is the sized type. Read more

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

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

impl<T> IntoFFIValue for T where
    T: PassBy, 

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

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

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> RIType for T where
    T: PassBy, 

type FFIType = <<T as PassBy>::PassBy as RIType>::FFIType

The ffi type that is used to represent Self.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

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