Struct secp256k1::SerializedSignature [−][src]
pub struct SerializedSignature { /* fields omitted */ }
A DER serialized Signature
Implementations
impl SerializedSignature
[src]
impl SerializedSignature
[src]pub fn capacity(&self) -> usize
[src]
Get the capacity of the underlying data buffer.
pub fn len(&self) -> usize
[src]
Get the len of the used data.
pub fn to_signature(&self) -> Result<Signature, Error>
[src]
Convert the serialized signature into the Signature struct. (This DER deserializes it)
pub fn from_signature(sig: &Signature) -> SerializedSignature
[src]
Create a SerializedSignature from a Signature. (this DER serializes it)
pub fn is_empty(&self) -> bool
[src]
Check if the space is zero.
Trait Implementations
impl Clone for SerializedSignature
[src]
impl Clone for SerializedSignature
[src]fn clone(&self) -> SerializedSignature
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SerializedSignature
[src]
impl Default for SerializedSignature
[src]fn default() -> SerializedSignature
[src]
impl Deref for SerializedSignature
[src]
impl Deref for SerializedSignature
[src]