Update documentation of EcdsaSig::from_slice
This commit is contained in:
parent
85009a7b50
commit
fbd86dcf63
|
@ -43,7 +43,7 @@ impl EcdsaSig {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Deserialize from slice
|
/// Deserialize from slice following the standardness rules for [`EcdsaSigHashType`]
|
||||||
pub fn from_slice(sl: &[u8]) -> Result<Self, EcdsaSigError> {
|
pub fn from_slice(sl: &[u8]) -> Result<Self, EcdsaSigError> {
|
||||||
let (hash_ty, sig) = sl.split_last()
|
let (hash_ty, sig) = sl.split_last()
|
||||||
.ok_or(EcdsaSigError::EmptySignature)?;
|
.ok_or(EcdsaSigError::EmptySignature)?;
|
||||||
|
|
Loading…
Reference in New Issue