Struct ethers::signers::yubihsm::ed25519::Signature [−][src]
pub struct Signature(_);
Expand description
Ed25519 signature.
Implementations
Parse an Ed25519 signature from a byte slice.
👎 Deprecated since 1.3.0: use ed25519::Signature::from_bytes instead
use ed25519::Signature::from_bytes instead
DEPRECATED: Create a new signature from a byte array.
Warning
This method will panic if an invalid signature is encountered.
Use Signature::from_bytes
or Signature::try_from
instead for
a fallible conversion.
Trait Implementations
DEPRECATED: use TryFrom<&[u8]>
instead.
Warning
This conversion will panic if a signature is invalid.
Decode a signature from hexadecimal.
Upper and lower case hexadecimal are both accepted, however mixed case is rejected.
Parse a signature from its byte representation
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl UnwindSafe for Signature
Blanket Implementations
pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice,
pub fn base32_len(&self) -> usize
pub fn base32_len(&self) -> usize
Calculate the base32 serialized length
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more