Struct Signature
pub struct Signature(/* private fields */);Expand description
Signature encoded as RSV components
Implementations§
§impl Signature
impl Signature
pub 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).
pub fn from_electrum(data: &[u8]) -> Signature
pub fn from_electrum(data: &[u8]) -> Signature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.