pub struct Signature { /* private fields */ }
Implementations§
Source§impl Signature
impl Signature
pub fn new(r: &[u8], s: &[u8]) -> Result<Self, KeyRejectedError>
pub fn from_slice(sig: &[u8]) -> Result<Self, KeyRejectedError>
pub fn from_scalars(r: Elem<Unencoded>, s: Elem<Unencoded>) -> Self
pub fn r(&self) -> [u8; 32]
pub fn s(&self) -> [u8; 32]
pub fn verify(&self, pk: &PublicKey, msg: &[u8]) -> Result<(), KeyRejectedError>
pub fn verify_digest( &self, pk: &PublicKey, digest: &[u8], ) -> Result<(), KeyRejectedError>
Trait Implementations§
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