pub struct FullSignature<C: CSCurve> {
pub big_r: C::AffinePoint,
pub s: C::Scalar,
}Expand description
Represents a signature with extra information, to support different variants of ECDSA.
An ECDSA signature is usually two scalars. The first scalar is derived from a point on the curve, and because this process is lossy, some other variants of ECDSA also include some extra information in order to recover this point.
Furthermore, some signature formats may disagree on how precisely to serialize different values as bytes.
To support these variants, this simply gives you a normal signature, along with the entire first point.
Fields§
§big_r: C::AffinePointThis is the entire first point.
s: C::ScalarThis is the second scalar, normalized to be in the lower range.
Trait Implementations§
Source§impl<C: Clone + CSCurve> Clone for FullSignature<C>
impl<C: Clone + CSCurve> Clone for FullSignature<C>
Source§fn clone(&self) -> FullSignature<C>
fn clone(&self) -> FullSignature<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<C> Freeze for FullSignature<C>
impl<C> RefUnwindSafe for FullSignature<C>where
<C as CurveArithmetic>::AffinePoint: RefUnwindSafe,
<C as CurveArithmetic>::Scalar: RefUnwindSafe,
impl<C> Send for FullSignature<C>
impl<C> Sync for FullSignature<C>
impl<C> Unpin for FullSignature<C>
impl<C> UnwindSafe for FullSignature<C>
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