pub struct ZeroesAllowedMessage(pub H256);
Expand description

In ethereum we allow public key recovery from a signature + message pair where the message is all-zeroes. This conflicts with the best practise of not allowing such values and so in order to avoid breaking consensus we need this to work around it. The ZeroesAllowedType wraps an H256 that can be converted to a [u8; 32] which in turn can be cast to a secp256k1::Message by the ThirtyTwoByteHash and satisfy the API for recover().

Tuple Fields

0: H256

Trait Implementations

Converts the object into a 32-byte array

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.