Struct pallet_example_offchain_worker::crypto::Public [−][src]
pub struct Public(_);
Expand description
A generic AppPublic
wrapper type over $public crypto; this has no specific App.
Trait Implementations
type UntypedGeneric = Public
type UntypedGeneric = Public
The corresponding type as a generic crypto type.
The identifier of the crypto type of this application-specific key type.
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Deserialize this value from the given Serde deserializer. Read more
Convert self to a slice and append it to the destination.
Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Upper bound, in bytes, of the maximum encoded size of this item.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Return CryptoTypePublicPair
from public key.
Return a Vec<u8>
filled with raw data.
The identifier of the crypto type of this application-specific key type.
The signature that will be generated when signing with the corresponding private key.
Generate a public/private pair with an optional seed
and store it in the keystore. Read more
Sign the given message with the corresponding private key of this public key. Read more
Verify that the given signature matches the given message using this public key.
Returns Self
as raw vec.
Auto Trait Implementations
impl RefUnwindSafe for Public
impl UnwindSafe for Public
Blanket Implementations
pub fn as_byte_slice(&self) -> &[u8]
pub fn as_mut_byte_slice(&mut self) -> &mut [u8]
pub fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error> where
T: FromByteSlice,
pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice,
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
Some if the string is a properly encoded SS58Check address, optionally with a derivation path following. Read more
Some if the string is a properly encoded SS58Check address, optionally with a derivation path following. Read more
A format filterer, can be used to ensure that from_ss58check
family only decode for
allowed identifiers. By default just refuses the two reserved identifiers. Read more
Some if the string is a properly encoded SS58Check address.
Some if the string is a properly encoded SS58Check address.
Return the ss58-check string for this key.
Return the ss58-check string for this key.
impl<Inner, Outer, T> UncheckedFrom<T> for Outer where
Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
Outer: Wraps<Inner = Inner>,
impl<Inner, Outer, T> UncheckedFrom<T> for Outer where
Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
Outer: Wraps<Inner = Inner>,
Convert from an instance of T
to Self. This is not guaranteed to be
whatever counts as a valid instance of T
and it’s up to the caller to
ensure that it makes sense. Read more
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,