Add Reserved variant to SigHashType for future use (ie SIGHASH_ANYPREVOUT)
This commit is contained in:
parent
53d0e176d3
commit
1a7afed068
|
@ -113,6 +113,9 @@ pub enum SigHashType {
|
|||
NonePlusAnyoneCanPay = 0x82,
|
||||
/// 0x83: Sign one output and only this input (see `Single` for what "one output" means)
|
||||
SinglePlusAnyoneCanPay = 0x83,
|
||||
|
||||
/// Reserved for future use
|
||||
Reserved = 0xFF,
|
||||
}
|
||||
|
||||
/// Possible errors in computing the signature message
|
||||
|
@ -225,6 +228,7 @@ impl SigHashType {
|
|||
SigHashType::AllPlusAnyoneCanPay => (SigHashType::All, true),
|
||||
SigHashType::NonePlusAnyoneCanPay => (SigHashType::None, true),
|
||||
SigHashType::SinglePlusAnyoneCanPay => (SigHashType::Single, true),
|
||||
SigHashType::Reserved => (SigHashType::Reserved, false),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue