#[non_exhaustive]pub enum Malleability {
Accept,
RejectHighS,
}Available on crate feature
verify only.Expand description
How to treat a signature whose s is above n/2.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Accept
Accept it, and report DeviationKind::HighSSignature.
The default, because the reference verifier accepts it and interoperability wins. The malleability is handled where it actually matters — record identity is the payload digest, not the record text.
RejectHighS
Refuse it.
Trait Implementations§
Source§impl Clone for Malleability
impl Clone for Malleability
impl Copy for Malleability
Source§impl Debug for Malleability
impl Debug for Malleability
Source§impl Default for Malleability
impl Default for Malleability
impl Eq for Malleability
Source§impl PartialEq for Malleability
impl PartialEq for Malleability
impl StructuralPartialEq for Malleability
Auto Trait Implementations§
impl Forget for Malleability
impl Freeze for Malleability
impl Move for Malleability
impl RefUnwindSafe for Malleability
impl Send for Malleability
impl Sync for Malleability
impl Unpin for Malleability
impl UnsafeUnpin for Malleability
impl UnwindSafe for Malleability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more