File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ pub struct EcdsaSig {
35
35
}
36
36
37
37
impl EcdsaSig {
38
- /// Constructs ECDSA bitcoin signature for [`EcdsaSighashType::All`]
38
+ /// Constructs an ECDSA bitcoin signature for [`EcdsaSighashType::All`].
39
39
pub fn sighash_all ( sig : secp256k1:: ecdsa:: Signature ) -> EcdsaSig {
40
40
EcdsaSig {
41
41
sig,
42
42
hash_ty : EcdsaSighashType :: All
43
43
}
44
44
}
45
45
46
- /// Deserialize from slice following the standardness rules for [`EcdsaSighashType`]
46
+ /// Deserializes from slice following the standardness rules for [`EcdsaSighashType`].
47
47
pub fn from_slice ( sl : & [ u8 ] ) -> Result < Self , EcdsaSigError > {
48
48
let ( hash_ty, sig) = sl. split_last ( )
49
49
. ok_or ( EcdsaSigError :: EmptySignature ) ?;
@@ -54,7 +54,7 @@ impl EcdsaSig {
54
54
Ok ( EcdsaSig { sig, hash_ty } )
55
55
}
56
56
57
- /// Serialize EcdsaSig
57
+ /// Serializes an ECDSA signature (inner secp256k1 signature in DER format).
58
58
pub fn to_vec ( & self ) -> Vec < u8 > {
59
59
// TODO: add support to serialize to a writer to SerializedSig
60
60
self . sig . serialize_der ( )
You can’t perform that action at this time.
0 commit comments