Support SIGHASH_RESERVED in SchnorrSigHashType::from_u8

This commit is contained in:
Dr Maxim Orlovsky 2022-03-27 15:01:08 +02:00
parent 86c6ab7529
commit 7cdcdaad6c
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ impl SchnorrSigHashType {
0x81 => Ok(SchnorrSigHashType::AllPlusAnyoneCanPay),
0x82 => Ok(SchnorrSigHashType::NonePlusAnyoneCanPay),
0x83 => Ok(SchnorrSigHashType::SinglePlusAnyoneCanPay),
0xFF => Ok(SchnorrSigHashType::Reserved),
x => Err(Error::InvalidSigHashType(x as u32)),
}
}