pub struct Signature(/* private fields */);Implementations§
Source§impl Signature
impl Signature
pub fn from_bytes_unchecked(buf: &[u8; 96]) -> Result<Self>
pub fn from_bytes(buf: &[u8; 96]) -> Result<Self>
pub fn from_uncompressed(buf: &[u8; 192]) -> Result<Self>
pub fn to_bytes(&self) -> [u8; 96]
pub fn generator() -> Self
pub fn aggregate(&mut self, sig: &Signature)
pub fn is_valid(&self) -> bool
pub fn negate(&mut self)
pub fn scalar_multiply(&mut self, int_bytes: &[u8])
pub fn pair(&self, other: &PublicKey) -> GTElement
Trait Implementations§
Source§impl AddAssign<&Signature> for Signature
impl AddAssign<&Signature> for Signature
Source§fn add_assign(&mut self, rhs: &Signature)
fn add_assign(&mut self, rhs: &Signature)
Performs the
+= operation. Read moreSource§impl Streamable for Signature
impl Streamable for Signature
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
Source§impl SubAssign<&Signature> for Signature
impl SubAssign<&Signature> for Signature
Source§fn sub_assign(&mut self, rhs: &Signature)
fn sub_assign(&mut self, rhs: &Signature)
Performs the
-= operation. Read moreimpl Eq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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