We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ccab7 commit 825493bCopy full SHA for 825493b
src/lib.rs
@@ -247,6 +247,9 @@ impl SerializedSignature {
247
pub fn from_signature(sig: &Signature) -> SerializedSignature {
248
sig.serialize_der()
249
}
250
+
251
+ /// Check if the space is zero.
252
+ pub fn is_empty(&self) -> bool { self.len() == 0 }
253
254
255
impl Signature {
@@ -548,7 +551,7 @@ impl Default for SerializedSignature {
548
551
549
552
impl PartialEq for SerializedSignature {
550
553
fn eq(&self, other: &SerializedSignature) -> bool {
- &self.data[..self.len] == &other.data[..other.len]
554
+ self.data[..self.len] == other.data[..other.len]
555
556
557
0 commit comments