pub struct Signature(/* private fields */);Expand description
Signature encoded as RSV components
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn into_electrum(self) -> [u8; 65]
pub fn into_electrum(self) -> [u8; 65]
Encode the signature into RSV array (V altered to be in “Electrum” notation).
Sourcepub fn from_electrum(data: &[u8]) -> Self
pub fn from_electrum(data: &[u8]) -> Self
Parse bytes as a signature encoded as RSV (V in “Electrum” notation). May return empty (invalid) signature if given data has invalid length.
Trait Implementations§
impl 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