Deprecated since 0.1.20:
please use as_bytes
instead
Converts a signature into a bytes string.
A signature in binary form consists of 65 bytes where
first 32 bytes are "r" in big endian form, next 32 bytes are "s"
in big endian form, and at the end there is one byte made of "v".
This also consumes the signature.
Extracts signature as bytes.
This supersedes into_bytes
as it does not consume the object itself.
Constructs a signature from a bytes string
This is opposite to into_bytes()
where a signature is created based
on a slice of bytes.
Recover an address from a signature
This can be called with any arbitrary signature, and a hashed message.
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Converts the given value to a String
. Read more
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter.
Formats the value using the given formatter.
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
The associated error which can be returned from parsing.
Constructs a signature back from a string representation
The input string's length should be exactly 130 not including
optional "0x" prefix at the beggining.
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static