Update documentation of EcdsaSig::from_slice

This commit is contained in:
sanket1729 2022-01-13 09:56:58 +05:30
parent 85009a7b50
commit fbd86dcf63
1 changed files with 1 additions and 1 deletions

View File

@ -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> {
let (hash_ty, sig) = sl.split_last()
.ok_or(EcdsaSigError::EmptySignature)?;